C# Class 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.
Afficher le fichier Open project: ngallagher/simplexml

Méthodes publiques

Méthode Description
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.

Method Details

Call() public méthode

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 ///
Résultat Object

Function() public méthode

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 ///
Résultat System.Collections.Generic

Function() public méthode

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 ///
Résultat System.Collections.Generic