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

Extension methods to the CodeDom classes.
Afficher le fichier Open project: WSCF/WSCF

Méthodes publiques

Méthode 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 méthode

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.
Résultat System.Type

FindArgument() public static méthode

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.
Résultat System.CodeDom.CodeAttributeArgument

IsNullableType() public static méthode

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