C# Класс vlko.core.Base.DynamicRoutes

Наследование: System.Dynamic.DynamicObject
Показать файл Открыть проект

Открытые методы

Метод Описание
DynamicRoutes ( System.Web.Mvc.UrlHelper helper ) : System

Initializes a new instance of the DynamicRoutes class.

Root ( bool includeAppPath = true ) : string

Get root of application.

TryGetMember ( GetMemberBinder binder, object &result ) : bool

Provides the implementation for operations that get member values. Classes derived from the T:System.Dynamic.DynamicObject class can override this method to specify dynamic behavior for operations such as getting a value for a property.

TryInvokeMember ( InvokeMemberBinder binder, object args, object &result ) : bool

Provides the implementation for operations that invoke a member. Classes derived from the T:System.Dynamic.DynamicObject class can override this method to specify dynamic behavior for operations such as calling a method.

Приватные методы

Метод Описание
GetPartialName ( string stems, string startWord, string stopWords ) : string
GetUrl ( string methodName, object args, ReadOnlyCollection argumentNames ) : object

Resolves method name with arguments to url.

Описание методов

DynamicRoutes() публичный Метод

Initializes a new instance of the DynamicRoutes class.
public DynamicRoutes ( System.Web.Mvc.UrlHelper helper ) : System
helper System.Web.Mvc.UrlHelper The helper.
Результат System

Root() публичный Метод

Get root of application.
public Root ( bool includeAppPath = true ) : string
includeAppPath bool if set to true [include app path].
Результат string

TryGetMember() публичный Метод

Provides the implementation for operations that get member values. Classes derived from the T:System.Dynamic.DynamicObject class can override this method to specify dynamic behavior for operations such as getting a value for a property.
public TryGetMember ( GetMemberBinder binder, object &result ) : bool
binder System.Dynamic.GetMemberBinder Provides information about the object that called the dynamic operation. The binder.Name property provides the name of the member on which the dynamic operation is performed. For example, for the Console.WriteLine(sampleObject.SampleProperty) statement, where sampleObject is an instance of the class derived from the class, binder.Name returns "SampleProperty". The binder.IgnoreCase property specifies whether the member name is case-sensitive.
result object The result of the get operation. For example, if the method is called for a property, you can assign the property value to .
Результат bool

TryInvokeMember() публичный Метод

Provides the implementation for operations that invoke a member. Classes derived from the T:System.Dynamic.DynamicObject class can override this method to specify dynamic behavior for operations such as calling a method.
public TryInvokeMember ( InvokeMemberBinder binder, object args, object &result ) : bool
binder System.Dynamic.InvokeMemberBinder Provides information about the dynamic operation. The binder.Name property provides the name of the member on which the dynamic operation is performed. For example, for the statement sampleObject.SampleMethod(100), where sampleObject is an instance of the class derived from the class, binder.Name returns "SampleMethod". The binder.IgnoreCase property specifies whether the member name is case-sensitive.
args object The arguments that are passed to the object member during the invoke operation. For example, for the statement sampleObject.SampleMethod(100), where sampleObject is derived from the class, is equal to 100.
result object The result of the member invocation.
Результат bool