コード例 #1
0
ファイル: Types.cs プロジェクト: Plankankul/Verve-Patch
 public DataDefType(string defName, params object[] baseTypes)
     : base(defName)
 {
     foreach (object obj in baseTypes)
     {
         this.BaseTypes.Add(GraphUnit.NewType(obj));
     }
 }
コード例 #2
0
ファイル: Types.cs プロジェクト: Plankankul/Verve-Patch
 public PropertyType(MemberAttributes memberAttributes, object propertyType, string propertyName, bool hasGet, bool hasSet)
 {
     this.Type       = GraphUnit.NewType(propertyType);
     this.Name       = propertyName;
     this.Attributes = memberAttributes;
     this.HasGet     = hasGet;
     this.HasSet     = hasSet;
 }
コード例 #3
0
ファイル: Types.cs プロジェクト: Plankankul/Verve-Patch
 public HandlerType(object handlerType, MethodRef method)
     : base(GraphUnit.NewType(handlerType), ((CodeMethodReferenceExpression)method.Expression).TargetObject,
            ((CodeMethodReferenceExpression)method.Expression).MethodName)
 {
 }
コード例 #4
0
ファイル: Types.cs プロジェクト: Plankankul/Verve-Patch
 public HandlerType(object handlerType, CodeExpression methodTarget, string methodName)
     : base(GraphUnit.NewType(handlerType), methodTarget, methodName)
 {
 }
コード例 #5
0
ファイル: Types.cs プロジェクト: Plankankul/Verve-Patch
 public CodeDelegateCreateExpression Create(string methodName)
 {
     return(this.Create(GraphUnit.my(), methodName));
 }
コード例 #6
0
ファイル: Types.cs プロジェクト: Plankankul/Verve-Patch
 public DelegateType(TypeAttributes attributes, object returnType, string delegateName)
 {
     this.TypeAttributes = attributes;
     this.Name           = delegateName;
     this.ReturnType     = GraphUnit.NewType(returnType);
 }
コード例 #7
0
ファイル: Types.cs プロジェクト: Plankankul/Verve-Patch
 public EventType(MemberAttributes memberAttributes, object eventType, string eventName)
 {
     this.Attributes = memberAttributes;
     this.Name       = eventName;
     this.Type       = GraphUnit.NewType(eventType);
 }