C# Class Invert.Core.GraphDesigner.CodeDomHelpers

Mostrar archivo Open project: InvertGames/uFrame.Editor

Public Methods

Method Description
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

Method Details

Add() public static method

public static Add ( this method, string snippet ) : CodeMemberMethod
method this
snippet string
return System.CodeDom.CodeMemberMethod

AddArgument() public static method

public static AddArgument ( this deleration, System.CodeDom.CodeExpression expression ) : CodeAttributeDeclaration
deleration this
expression System.CodeDom.CodeExpression
return System.CodeDom.CodeAttributeDeclaration

AddArgument() public static method

public static AddArgument ( this deleration, string format ) : CodeAttributeDeclaration
deleration this
format string
return System.CodeDom.CodeAttributeDeclaration

AddArgument() public static method

public static AddArgument ( this deleration, string name, System.CodeDom.CodeExpression expression ) : CodeAttributeDeclaration
deleration this
name string
expression System.CodeDom.CodeExpression
return System.CodeDom.CodeAttributeDeclaration

Base() public static method

public static Base ( this decleration, Type baseType ) : CodeTypeDeclaration
decleration this
baseType System.Type
return System.CodeDom.CodeTypeDeclaration

Base() public static method

public static Base ( this decleration, string baseType ) : CodeTypeDeclaration
decleration this
baseType string
return System.CodeDom.CodeTypeDeclaration

Clean() public static method

public static Clean ( this str ) : string
str this
return string

Declare() public static method

public static Declare ( this ns, MemberAttributes attributes, string name ) : CodeTypeDeclaration
ns this
attributes MemberAttributes
name string
return System.CodeDom.CodeTypeDeclaration

EncapsulateField() public static method

public static EncapsulateField ( this field, string name ) : CodeMemberProperty
field this
name string
return System.CodeDom.CodeMemberProperty

EncapsulateField() public static method

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
return System.CodeDom.CodeMemberProperty

EncapsulateField() public static method

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
return System.CodeDom.CodeTypeDeclaration

EncapsulatedField() public static method

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
return System.CodeDom.CodeTypeDeclaration

Field() public static method

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
return System.CodeDom.CodeTypeDeclaration

Field() public static method

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
return System.CodeDom.CodeTypeDeclaration

GenerateCodeFromMembers() public static method

public static GenerateCodeFromMembers ( ) : string
return string

GenerateCodeFromMembers() public static method

public static GenerateCodeFromMembers ( CodeTypeMemberCollection collection ) : string
collection System.CodeDom.CodeTypeMemberCollection
return string

IsOverride() public static method

public static IsOverride ( this m ) : bool
m this
return bool

MakeStatic() public static method

public static MakeStatic ( this type ) : CodeMemberMethod
type this
return System.CodeDom.CodeMemberMethod

MakeStatic() public static method

public static MakeStatic ( this type ) : CodeTypeDeclaration
type this
return System.CodeDom.CodeTypeDeclaration

Method() public static method

public static Method ( this decleration, MemberAttributes attributes, Type returnType, string name ) : CodeMemberMethod
decleration this
attributes MemberAttributes
returnType System.Type
name string
return System.CodeDom.CodeMemberMethod

MethodFromTypeMethod() public static method

public static MethodFromTypeMethod ( this type, string methodName, MethodInfo &methodInfo, bool callBase = true ) : CodeMemberMethod
type this
methodName string
methodInfo System.Reflection.MethodInfo
callBase bool
return System.CodeDom.CodeMemberMethod

MethodFromTypeMethod() public static method

public static MethodFromTypeMethod ( this type, string methodName, bool callBase = true ) : CodeMemberMethod
type this
methodName string
callBase bool
return System.CodeDom.CodeMemberMethod

PropertyFromTypeProperty() public static method

public static PropertyFromTypeProperty ( this type, string propertyName, bool callBase = true ) : CodeMemberProperty
type this
propertyName string
callBase bool
return System.CodeDom.CodeMemberProperty

SetTypeArgument() public static method

public static SetTypeArgument ( this property, object type ) : CodeMemberProperty
property this
type object
return System.CodeDom.CodeMemberProperty

ToClassDecleration() public static method

public static ToClassDecleration ( this type ) : CodeTypeDeclaration
type this
return System.CodeDom.CodeTypeDeclaration

ToClassDecleration() public static method

public static ToClassDecleration ( Type type, CodeTypeDeclaration classDecleration ) : void
type System.Type
classDecleration System.CodeDom.CodeTypeDeclaration
return void

ToCodeConstructor() public static method

public static ToCodeConstructor ( this constructor ) : CodeConstructor
constructor this
return System.CodeDom.CodeConstructor

ToCodeReference() public static method

public static ToCodeReference ( this obj ) : CodeTypeReference
obj this
return System.CodeDom.CodeTypeReference

_() public static method

public static _ ( this method, string expression ) : CodeMemberMethod
method this
expression string
return System.CodeDom.CodeMemberMethod

_() public static method

public static _ ( this statements, string expression ) : CodeStatementCollection
statements this
expression string
return System.CodeDom.CodeStatementCollection

_get() public static method

public static _get ( this property, string expression ) : CodeMemberProperty
property this
expression string
return System.CodeDom.CodeMemberProperty

_if() public static method

public static _if ( this statements, string expression ) : CodeConditionStatement
statements this
expression string
return System.CodeDom.CodeConditionStatement

_private_() public static method

public static _private_ ( this s, object returnType, string fieldName ) : CodeMemberField
s this
returnType object
fieldName string
return System.CodeDom.CodeMemberField

_protected_() public static method

public static _protected_ ( this s, object returnType, string fieldName ) : CodeMemberField
s this
returnType object
fieldName string
return System.CodeDom.CodeMemberField

_protected_override_() public static method

public static _protected_override_ ( this s, object returnType, string fieldName ) : CodeMemberField
s this
returnType object
fieldName string
return System.CodeDom.CodeMemberField

_protected_virtual_() public static method

public static _protected_virtual_ ( this s, object returnType, string fieldName ) : CodeMemberField
s this
returnType object
fieldName string
return System.CodeDom.CodeMemberField

_public_() public static method

public static _public_ ( this s, object returnType, string fieldName ) : CodeMemberField
s this
returnType object
fieldName string
return System.CodeDom.CodeMemberField

_public_override_() public static method

public static _public_override_ ( this s, object returnType, string fieldName ) : CodeMemberField
s this
returnType object
fieldName string
return System.CodeDom.CodeMemberField

_public_virtual_() public static method

public static _public_virtual_ ( this s, object returnType, string fieldName ) : CodeMemberField
s this
returnType object
fieldName string
return System.CodeDom.CodeMemberField

_set() public static method

public static _set ( this property, string expression ) : CodeMemberProperty
property this
expression string
return System.CodeDom.CodeMemberProperty

end() public static method

public static end ( this method ) : CodeTypeDeclaration
method this
return System.CodeDom.CodeTypeDeclaration

invoke_base() public static method

public static invoke_base ( this m, bool insertAtBeginning = false ) : CodeMemberMethod
m this
insertAtBeginning bool
return System.CodeDom.CodeMemberMethod

private_() public static method

public static private_ ( this s, object propertyType, string propertyName ) : CodeMemberProperty
s this
propertyType object
propertyName string
return System.CodeDom.CodeMemberProperty

private_func() public static method

public static private_func ( this s, object returnType, string methodName ) : CodeMemberMethod
s this
returnType object
methodName string
return System.CodeDom.CodeMemberMethod

protected_() public static method

public static protected_ ( this s, object returnType, string propertyName ) : CodeMemberProperty
s this
returnType object
propertyName string
return System.CodeDom.CodeMemberProperty

protected_func() public static method

public static protected_func ( this s, object returnType, string methodName ) : CodeMemberMethod
s this
returnType object
methodName string
return System.CodeDom.CodeMemberMethod

protected_override_() public static method

public static protected_override_ ( this s, object returnType, string propertyName ) : CodeMemberProperty
s this
returnType object
propertyName string
return System.CodeDom.CodeMemberProperty

protected_override_func() public static method

public static protected_override_func ( this s, object returnType, string methodName ) : CodeMemberMethod
s this
returnType object
methodName string
return System.CodeDom.CodeMemberMethod

protected_virtual_() public static method

public static protected_virtual_ ( this s, object returnType, string propertyName ) : CodeMemberProperty
s this
returnType object
propertyName string
return System.CodeDom.CodeMemberProperty

protected_virtual_func() public static method

public static protected_virtual_func ( this s, object returnType, string methodName ) : CodeMemberMethod
s this
returnType object
methodName string
return System.CodeDom.CodeMemberMethod

public_() public static method

public static public_ ( this s, object returnType, string propertyName ) : CodeMemberProperty
s this
returnType object
propertyName string
return System.CodeDom.CodeMemberProperty

public_func() public static method

public static public_func ( this s, object returnType, string methodName ) : CodeMemberMethod
s this
returnType object
methodName string
return System.CodeDom.CodeMemberMethod

public_override_() public static method

public static public_override_ ( this s, object returnType, string propertyName ) : CodeMemberProperty
s this
returnType object
propertyName string
return System.CodeDom.CodeMemberProperty

public_override_func() public static method

public static public_override_func ( this s, object returnType, string methodName ) : CodeMemberMethod
s this
returnType object
methodName string
return System.CodeDom.CodeMemberMethod

public_virtual_() public static method

public static public_virtual_ ( this s, object returnType, string propertyName ) : CodeMemberProperty
s this
returnType object
propertyName string
return System.CodeDom.CodeMemberProperty

public_virtual_func() public static method

public static public_virtual_func ( this s, object returnType, string methodName ) : CodeMemberMethod
s this
returnType object
methodName string
return System.CodeDom.CodeMemberMethod