C# Класс SimpleFramework.Xml.Core.Function

The Function object is used to encapsulated the method that is called when serializing an object. This contains details on the type of method represented and ensures that reflection is not required each time the method is to be invoked.
Показать файл Открыть проект

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

Метод Описание
Call ( Context context, Object source ) : Object

This method used to invoke the callback method of the provided object. This will acquire the session map from the context. If the provided object is not null then this will return null.

Function ( Method method ) : System.Collections.Generic

Constructor for the Function object. This is used to create an object that wraps the provided method it ensures that no reflection is required when the method is to be called.

Function ( Method method, bool contextual ) : System.Collections.Generic

Constructor for the Function object. This is used to create an object that wraps the provided method it ensures that no reflection is required when the method is to be called.

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

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

This method used to invoke the callback method of the provided object. This will acquire the session map from the context. If the provided object is not null then this will return null.
public Call ( Context context, Object source ) : Object
context Context /// this is the context that contains the session ///
source Object /// this is the object to invoke the function on ///
Результат Object

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

Constructor for the Function object. This is used to create an object that wraps the provided method it ensures that no reflection is required when the method is to be called.
public Function ( Method method ) : System.Collections.Generic
method Method /// this is the method that is to be wrapped by this ///
Результат System.Collections.Generic

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

Constructor for the Function object. This is used to create an object that wraps the provided method it ensures that no reflection is required when the method is to be called.
public Function ( Method method, bool contextual ) : System.Collections.Generic
method Method /// this is the method that is to be wrapped by this ///
contextual bool /// determines if the method is a contextual one ///
Результат System.Collections.Generic