예제 #1
0
 public DataDefType(string defName, params object[] baseTypes)
     : base(defName)
 {
     foreach (object obj in baseTypes)
     {
         this.BaseTypes.Add(GraphUnit.NewType(obj));
     }
 }
예제 #2
0
 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
 public HandlerType(object handlerType, MethodRef method)
     : base(GraphUnit.NewType(handlerType), ((CodeMethodReferenceExpression)method.Expression).TargetObject,
            ((CodeMethodReferenceExpression)method.Expression).MethodName)
 {
 }
예제 #4
0
 public HandlerType(object handlerType, CodeExpression methodTarget, string methodName)
     : base(GraphUnit.NewType(handlerType), methodTarget, methodName)
 {
 }
예제 #5
0
 public CodeDelegateCreateExpression Create(string methodName)
 {
     return(this.Create(GraphUnit.my(), methodName));
 }
예제 #6
0
 public DelegateType(TypeAttributes attributes, object returnType, string delegateName)
 {
     this.TypeAttributes = attributes;
     this.Name           = delegateName;
     this.ReturnType     = GraphUnit.NewType(returnType);
 }
예제 #7
0
 public EventType(MemberAttributes memberAttributes, object eventType, string eventName)
 {
     this.Attributes = memberAttributes;
     this.Name       = eventName;
     this.Type       = GraphUnit.NewType(eventType);
 }