C# Class NAnt.DotNet.Tasks.AssemblyInfoTask.TypedValueGatherer

Responsible for returning the specified value converted to a Type accepted by a constructor for a given Type.
Inheritance: System.MarshalByRefObject
Exibir arquivo Open project: skolima/NAnt

Public Methods

Method Description
GetTypedValue ( StringCollection assemblies, StringCollection imports, string typename, string value ) : object

Retrieves the specified Type corresponding with the specified type name from a list of assemblies.

InitializeLifetimeService ( ) : Object

Obtains a lifetime service object to control the lifetime policy for this instance.

Method Details

GetTypedValue() public method

Retrieves the specified Type corresponding with the specified type name from a list of assemblies.
/// is and the identified by has no default public constructor. /// -or- /// cannot be converted to a value that's suitable for one of the constructors of the identified by . /// -or- /// The identified by has no suitable constructor. /// -or- /// A identified by could not be located or loaded. ///
public GetTypedValue ( StringCollection assemblies, StringCollection imports, string typename, string value ) : object
assemblies System.Collections.Specialized.StringCollection The collection of assemblies that the type should tried to be instantiated from.
imports System.Collections.Specialized.StringCollection The list of imports that can be used to resolve the typename to a full typename.
typename string The typename that should be used to determine the type to which the specified value should be converted.
value string The value that should be converted to a typed value.
return object

InitializeLifetimeService() public method

Obtains a lifetime service object to control the lifetime policy for this instance.
public InitializeLifetimeService ( ) : Object
return Object