C# Class Thinktecture.Tools.Web.Services.CodeGeneration.CodeDomExtensions

Extension methods to the CodeDom classes.
Exibir arquivo Open project: WSCF/WSCF

Public Methods

Method Description
CloseNullableType ( this reference ) : Type

Creates a closed generic nullable type from the current CodeTypeReference.

FindArgument ( this attributeDeclaration, string argumentName ) : CodeAttributeArgument

Finds an argument in an attribute declaration.

The argument name is case-sensitive.

IsNullableType ( this reference ) : bool

Tests if the CodeTypeReference represents a Nullable type.

Method Details

CloseNullableType() public static method

Creates a closed generic nullable type from the current CodeTypeReference.
Thrown if the code type reference does not represent a nullable type.
public static CloseNullableType ( this reference ) : Type
reference this The code type reference.
return System.Type

FindArgument() public static method

Finds an argument in an attribute declaration.
The argument name is case-sensitive.
public static FindArgument ( this attributeDeclaration, string argumentName ) : CodeAttributeArgument
attributeDeclaration this The attribute declaration.
argumentName string Name of the argument.
return System.CodeDom.CodeAttributeArgument

IsNullableType() public static method

Tests if the CodeTypeReference represents a Nullable type.
public static IsNullableType ( this reference ) : bool
reference this The code type reference.
return bool