C# Класс Invert.Core.GraphDesigner.CodeDomHelpers

Показать файл Открыть проект

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

Метод Описание
Add ( this method, string snippet ) : CodeMemberMethod
AddArgument ( this deleration, System.CodeDom.CodeExpression expression ) : CodeAttributeDeclaration
AddArgument ( this deleration, string format ) : CodeAttributeDeclaration
AddArgument ( this deleration, string name, System.CodeDom.CodeExpression expression ) : CodeAttributeDeclaration
Base ( this decleration, Type baseType ) : CodeTypeDeclaration
Base ( this decleration, string baseType ) : CodeTypeDeclaration
Clean ( this str ) : string
Declare ( this ns, MemberAttributes attributes, string name ) : CodeTypeDeclaration
EncapsulateField ( this field, string name ) : CodeMemberProperty
EncapsulateField ( this field, string name, System.CodeDom.CodeExpression lazyValue, System.CodeDom.CodeExpression lazyCondition = null, bool generateSetter = false ) : CodeMemberProperty
EncapsulateField ( this typeDeclaration, CodeMemberField field, string name, System.CodeDom.CodeExpression lazyValue, System.CodeDom.CodeExpression lazyCondition = null ) : CodeTypeDeclaration
EncapsulatedField ( this decleration, Type fieldType, string name, string propertyName, System.CodeDom.CodeExpression lazyValue, bool publicField = false ) : CodeTypeDeclaration
Field ( this decleration, MemberAttributes attributes, Type fieldType, string name, System.CodeDom.CodeExpression init = null ) : CodeTypeDeclaration
Field ( this decleration, Type fieldType, string name, System.CodeDom.CodeExpression init = null ) : CodeTypeDeclaration
GenerateCodeFromMembers ( ) : string
GenerateCodeFromMembers ( CodeTypeMemberCollection collection ) : string
IsOverride ( this m ) : bool
MakeStatic ( this type ) : CodeMemberMethod
MakeStatic ( this type ) : CodeTypeDeclaration
Method ( this decleration, MemberAttributes attributes, Type returnType, string name ) : CodeMemberMethod
MethodFromTypeMethod ( this type, string methodName, MethodInfo &methodInfo, bool callBase = true ) : CodeMemberMethod
MethodFromTypeMethod ( this type, string methodName, bool callBase = true ) : CodeMemberMethod
PropertyFromTypeProperty ( this type, string propertyName, bool callBase = true ) : CodeMemberProperty
SetTypeArgument ( this property, object type ) : CodeMemberProperty
ToClassDecleration ( this type ) : CodeTypeDeclaration
ToClassDecleration ( Type type, CodeTypeDeclaration classDecleration ) : void
ToCodeConstructor ( this constructor ) : CodeConstructor
ToCodeReference ( this obj ) : CodeTypeReference
_ ( this method, string expression ) : CodeMemberMethod
_ ( this statements, string expression ) : CodeStatementCollection
_get ( this property, string expression ) : CodeMemberProperty
_if ( this statements, string expression ) : CodeConditionStatement
_private_ ( this s, object returnType, string fieldName ) : CodeMemberField
_protected_ ( this s, object returnType, string fieldName ) : CodeMemberField
_protected_override_ ( this s, object returnType, string fieldName ) : CodeMemberField
_protected_virtual_ ( this s, object returnType, string fieldName ) : CodeMemberField
_public_ ( this s, object returnType, string fieldName ) : CodeMemberField
_public_override_ ( this s, object returnType, string fieldName ) : CodeMemberField
_public_virtual_ ( this s, object returnType, string fieldName ) : CodeMemberField
_set ( this property, string expression ) : CodeMemberProperty
end ( this method ) : CodeTypeDeclaration
invoke_base ( this m, bool insertAtBeginning = false ) : CodeMemberMethod
private_ ( this s, object propertyType, string propertyName ) : CodeMemberProperty
private_func ( this s, object returnType, string methodName ) : CodeMemberMethod
protected_ ( this s, object returnType, string propertyName ) : CodeMemberProperty
protected_func ( this s, object returnType, string methodName ) : CodeMemberMethod
protected_override_ ( this s, object returnType, string propertyName ) : CodeMemberProperty
protected_override_func ( this s, object returnType, string methodName ) : CodeMemberMethod
protected_virtual_ ( this s, object returnType, string propertyName ) : CodeMemberProperty
protected_virtual_func ( this s, object returnType, string methodName ) : CodeMemberMethod
public_ ( this s, object returnType, string propertyName ) : CodeMemberProperty
public_func ( this s, object returnType, string methodName ) : CodeMemberMethod
public_override_ ( this s, object returnType, string propertyName ) : CodeMemberProperty
public_override_func ( this s, object returnType, string methodName ) : CodeMemberMethod
public_virtual_ ( this s, object returnType, string propertyName ) : CodeMemberProperty
public_virtual_func ( this s, object returnType, string methodName ) : CodeMemberMethod

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

Add() публичный статический Метод

public static Add ( this method, string snippet ) : CodeMemberMethod
method this
snippet string
Результат System.CodeDom.CodeMemberMethod

AddArgument() публичный статический Метод

public static AddArgument ( this deleration, System.CodeDom.CodeExpression expression ) : CodeAttributeDeclaration
deleration this
expression System.CodeDom.CodeExpression
Результат System.CodeDom.CodeAttributeDeclaration

AddArgument() публичный статический Метод

public static AddArgument ( this deleration, string format ) : CodeAttributeDeclaration
deleration this
format string
Результат System.CodeDom.CodeAttributeDeclaration

AddArgument() публичный статический Метод

public static AddArgument ( this deleration, string name, System.CodeDom.CodeExpression expression ) : CodeAttributeDeclaration
deleration this
name string
expression System.CodeDom.CodeExpression
Результат System.CodeDom.CodeAttributeDeclaration

Base() публичный статический Метод

public static Base ( this decleration, Type baseType ) : CodeTypeDeclaration
decleration this
baseType System.Type
Результат System.CodeDom.CodeTypeDeclaration

Base() публичный статический Метод

public static Base ( this decleration, string baseType ) : CodeTypeDeclaration
decleration this
baseType string
Результат System.CodeDom.CodeTypeDeclaration

Clean() публичный статический Метод

public static Clean ( this str ) : string
str this
Результат string

Declare() публичный статический Метод

public static Declare ( this ns, MemberAttributes attributes, string name ) : CodeTypeDeclaration
ns this
attributes MemberAttributes
name string
Результат System.CodeDom.CodeTypeDeclaration

EncapsulateField() публичный статический Метод

public static EncapsulateField ( this field, string name ) : CodeMemberProperty
field this
name string
Результат System.CodeDom.CodeMemberProperty

EncapsulateField() публичный статический Метод

public static EncapsulateField ( this field, string name, System.CodeDom.CodeExpression lazyValue, System.CodeDom.CodeExpression lazyCondition = null, bool generateSetter = false ) : CodeMemberProperty
field this
name string
lazyValue System.CodeDom.CodeExpression
lazyCondition System.CodeDom.CodeExpression
generateSetter bool
Результат System.CodeDom.CodeMemberProperty

EncapsulateField() публичный статический Метод

public static EncapsulateField ( this typeDeclaration, CodeMemberField field, string name, System.CodeDom.CodeExpression lazyValue, System.CodeDom.CodeExpression lazyCondition = null ) : CodeTypeDeclaration
typeDeclaration this
field System.CodeDom.CodeMemberField
name string
lazyValue System.CodeDom.CodeExpression
lazyCondition System.CodeDom.CodeExpression
Результат System.CodeDom.CodeTypeDeclaration

EncapsulatedField() публичный статический Метод

public static EncapsulatedField ( this decleration, Type fieldType, string name, string propertyName, System.CodeDom.CodeExpression lazyValue, bool publicField = false ) : CodeTypeDeclaration
decleration this
fieldType System.Type
name string
propertyName string
lazyValue System.CodeDom.CodeExpression
publicField bool
Результат System.CodeDom.CodeTypeDeclaration

Field() публичный статический Метод

public static Field ( this decleration, MemberAttributes attributes, Type fieldType, string name, System.CodeDom.CodeExpression init = null ) : CodeTypeDeclaration
decleration this
attributes MemberAttributes
fieldType System.Type
name string
init System.CodeDom.CodeExpression
Результат System.CodeDom.CodeTypeDeclaration

Field() публичный статический Метод

public static Field ( this decleration, Type fieldType, string name, System.CodeDom.CodeExpression init = null ) : CodeTypeDeclaration
decleration this
fieldType System.Type
name string
init System.CodeDom.CodeExpression
Результат System.CodeDom.CodeTypeDeclaration

GenerateCodeFromMembers() публичный статический Метод

public static GenerateCodeFromMembers ( ) : string
Результат string

GenerateCodeFromMembers() публичный статический Метод

public static GenerateCodeFromMembers ( CodeTypeMemberCollection collection ) : string
collection System.CodeDom.CodeTypeMemberCollection
Результат string

IsOverride() публичный статический Метод

public static IsOverride ( this m ) : bool
m this
Результат bool

MakeStatic() публичный статический Метод

public static MakeStatic ( this type ) : CodeMemberMethod
type this
Результат System.CodeDom.CodeMemberMethod

MakeStatic() публичный статический Метод

public static MakeStatic ( this type ) : CodeTypeDeclaration
type this
Результат System.CodeDom.CodeTypeDeclaration

Method() публичный статический Метод

public static Method ( this decleration, MemberAttributes attributes, Type returnType, string name ) : CodeMemberMethod
decleration this
attributes MemberAttributes
returnType System.Type
name string
Результат System.CodeDom.CodeMemberMethod

MethodFromTypeMethod() публичный статический Метод

public static MethodFromTypeMethod ( this type, string methodName, MethodInfo &methodInfo, bool callBase = true ) : CodeMemberMethod
type this
methodName string
methodInfo System.Reflection.MethodInfo
callBase bool
Результат System.CodeDom.CodeMemberMethod

MethodFromTypeMethod() публичный статический Метод

public static MethodFromTypeMethod ( this type, string methodName, bool callBase = true ) : CodeMemberMethod
type this
methodName string
callBase bool
Результат System.CodeDom.CodeMemberMethod

PropertyFromTypeProperty() публичный статический Метод

public static PropertyFromTypeProperty ( this type, string propertyName, bool callBase = true ) : CodeMemberProperty
type this
propertyName string
callBase bool
Результат System.CodeDom.CodeMemberProperty

SetTypeArgument() публичный статический Метод

public static SetTypeArgument ( this property, object type ) : CodeMemberProperty
property this
type object
Результат System.CodeDom.CodeMemberProperty

ToClassDecleration() публичный статический Метод

public static ToClassDecleration ( this type ) : CodeTypeDeclaration
type this
Результат System.CodeDom.CodeTypeDeclaration

ToClassDecleration() публичный статический Метод

public static ToClassDecleration ( Type type, CodeTypeDeclaration classDecleration ) : void
type System.Type
classDecleration System.CodeDom.CodeTypeDeclaration
Результат void

ToCodeConstructor() публичный статический Метод

public static ToCodeConstructor ( this constructor ) : CodeConstructor
constructor this
Результат System.CodeDom.CodeConstructor

ToCodeReference() публичный статический Метод

public static ToCodeReference ( this obj ) : CodeTypeReference
obj this
Результат System.CodeDom.CodeTypeReference

_() публичный статический Метод

public static _ ( this method, string expression ) : CodeMemberMethod
method this
expression string
Результат System.CodeDom.CodeMemberMethod

_() публичный статический Метод

public static _ ( this statements, string expression ) : CodeStatementCollection
statements this
expression string
Результат System.CodeDom.CodeStatementCollection

_get() публичный статический Метод

public static _get ( this property, string expression ) : CodeMemberProperty
property this
expression string
Результат System.CodeDom.CodeMemberProperty

_if() публичный статический Метод

public static _if ( this statements, string expression ) : CodeConditionStatement
statements this
expression string
Результат System.CodeDom.CodeConditionStatement

_private_() публичный статический Метод

public static _private_ ( this s, object returnType, string fieldName ) : CodeMemberField
s this
returnType object
fieldName string
Результат System.CodeDom.CodeMemberField

_protected_() публичный статический Метод

public static _protected_ ( this s, object returnType, string fieldName ) : CodeMemberField
s this
returnType object
fieldName string
Результат System.CodeDom.CodeMemberField

_protected_override_() публичный статический Метод

public static _protected_override_ ( this s, object returnType, string fieldName ) : CodeMemberField
s this
returnType object
fieldName string
Результат System.CodeDom.CodeMemberField

_protected_virtual_() публичный статический Метод

public static _protected_virtual_ ( this s, object returnType, string fieldName ) : CodeMemberField
s this
returnType object
fieldName string
Результат System.CodeDom.CodeMemberField

_public_() публичный статический Метод

public static _public_ ( this s, object returnType, string fieldName ) : CodeMemberField
s this
returnType object
fieldName string
Результат System.CodeDom.CodeMemberField

_public_override_() публичный статический Метод

public static _public_override_ ( this s, object returnType, string fieldName ) : CodeMemberField
s this
returnType object
fieldName string
Результат System.CodeDom.CodeMemberField

_public_virtual_() публичный статический Метод

public static _public_virtual_ ( this s, object returnType, string fieldName ) : CodeMemberField
s this
returnType object
fieldName string
Результат System.CodeDom.CodeMemberField

_set() публичный статический Метод

public static _set ( this property, string expression ) : CodeMemberProperty
property this
expression string
Результат System.CodeDom.CodeMemberProperty

end() публичный статический Метод

public static end ( this method ) : CodeTypeDeclaration
method this
Результат System.CodeDom.CodeTypeDeclaration

invoke_base() публичный статический Метод

public static invoke_base ( this m, bool insertAtBeginning = false ) : CodeMemberMethod
m this
insertAtBeginning bool
Результат System.CodeDom.CodeMemberMethod

private_() публичный статический Метод

public static private_ ( this s, object propertyType, string propertyName ) : CodeMemberProperty
s this
propertyType object
propertyName string
Результат System.CodeDom.CodeMemberProperty

private_func() публичный статический Метод

public static private_func ( this s, object returnType, string methodName ) : CodeMemberMethod
s this
returnType object
methodName string
Результат System.CodeDom.CodeMemberMethod

protected_() публичный статический Метод

public static protected_ ( this s, object returnType, string propertyName ) : CodeMemberProperty
s this
returnType object
propertyName string
Результат System.CodeDom.CodeMemberProperty

protected_func() публичный статический Метод

public static protected_func ( this s, object returnType, string methodName ) : CodeMemberMethod
s this
returnType object
methodName string
Результат System.CodeDom.CodeMemberMethod

protected_override_() публичный статический Метод

public static protected_override_ ( this s, object returnType, string propertyName ) : CodeMemberProperty
s this
returnType object
propertyName string
Результат System.CodeDom.CodeMemberProperty

protected_override_func() публичный статический Метод

public static protected_override_func ( this s, object returnType, string methodName ) : CodeMemberMethod
s this
returnType object
methodName string
Результат System.CodeDom.CodeMemberMethod

protected_virtual_() публичный статический Метод

public static protected_virtual_ ( this s, object returnType, string propertyName ) : CodeMemberProperty
s this
returnType object
propertyName string
Результат System.CodeDom.CodeMemberProperty

protected_virtual_func() публичный статический Метод

public static protected_virtual_func ( this s, object returnType, string methodName ) : CodeMemberMethod
s this
returnType object
methodName string
Результат System.CodeDom.CodeMemberMethod

public_() публичный статический Метод

public static public_ ( this s, object returnType, string propertyName ) : CodeMemberProperty
s this
returnType object
propertyName string
Результат System.CodeDom.CodeMemberProperty

public_func() публичный статический Метод

public static public_func ( this s, object returnType, string methodName ) : CodeMemberMethod
s this
returnType object
methodName string
Результат System.CodeDom.CodeMemberMethod

public_override_() публичный статический Метод

public static public_override_ ( this s, object returnType, string propertyName ) : CodeMemberProperty
s this
returnType object
propertyName string
Результат System.CodeDom.CodeMemberProperty

public_override_func() публичный статический Метод

public static public_override_func ( this s, object returnType, string methodName ) : CodeMemberMethod
s this
returnType object
methodName string
Результат System.CodeDom.CodeMemberMethod

public_virtual_() публичный статический Метод

public static public_virtual_ ( this s, object returnType, string propertyName ) : CodeMemberProperty
s this
returnType object
propertyName string
Результат System.CodeDom.CodeMemberProperty

public_virtual_func() публичный статический Метод

public static public_virtual_func ( this s, object returnType, string methodName ) : CodeMemberMethod
s this
returnType object
methodName string
Результат System.CodeDom.CodeMemberMethod