コード例 #1
0
 internal static ApiMethodBuilder Method(ApiTypeBuilder parent, MethodAttributes attributes)
 {
     return(new ApiMethodBuilder
     {
         _parent = parent,
         _methodAttributes = attributes,
         _ctor = true
     });
 }
コード例 #2
0
 internal static ApiMethodBuilder Method(ApiTypeBuilder parent, string name, MethodAttributes attributes, Type returnType)
 {
     return(new ApiMethodBuilder
     {
         _parent = parent,
         _name = name,
         _methodAttributes = attributes,
         _returnType = returnType
     });
 }
コード例 #3
0
 internal static ApiMethodBuilder Method(ApiTypeBuilder parent, string name, MethodAttributes attributes, Type returnType)
 {
     return new ApiMethodBuilder
       {
     _parent = parent,
     _name = name,
     _methodAttributes = attributes,
     _returnType = returnType
       };
 }
コード例 #4
0
ファイル: ApiTypeBuilder.cs プロジェクト: swiebertje/ApiCheck
        internal static ApiTypeBuilder Type(ApiBuilder parent, string name, TypeAttributes attributes, Type extends, Type[] interfaces)
        {
            ApiTypeBuilder apiTypeBuilder = new ApiTypeBuilder
            {
                _typeBuilder = parent.ModuleBuilder.DefineType(name, attributes, extends, interfaces),
                _parent      = parent
            };

            return(apiTypeBuilder);
        }
コード例 #5
0
ファイル: ApiBuilder.cs プロジェクト: swiebertje/ApiCheck
 public ApiTypeBuilder Interface(string name = "MyInterface", Type[] interfaces = null)
 {
     return(ApiTypeBuilder.Type(this, name, TypeAttributes.Interface | TypeAttributes.Public | TypeAttributes.Abstract, null, interfaces));
 }
コード例 #6
0
ファイル: ApiBuilder.cs プロジェクト: swiebertje/ApiCheck
 public ApiTypeBuilder AbstractClass(string name = "MyAbstractClass", Type extends = null, Type[] interfaces = null)
 {
     return(ApiTypeBuilder.Type(this, name, TypeAttributes.Public | TypeAttributes.Abstract, extends, interfaces));
 }
コード例 #7
0
ファイル: ApiBuilder.cs プロジェクト: swiebertje/ApiCheck
 public ApiTypeBuilder Class(string name = "MyClass", Type extends = null, Type[] interfaces = null, TypeAttributes attributes = TypeAttributes.Public)
 {
     return(ApiTypeBuilder.Type(this, name, attributes, extends, interfaces));
 }
コード例 #8
0
 internal static ApiMethodBuilder Method(ApiTypeBuilder parent, MethodAttributes attributes)
 {
     return new ApiMethodBuilder
       {
     _parent = parent,
     _methodAttributes = attributes,
     _ctor = true
       };
 }
コード例 #9
0
 internal static ApiTypeBuilder Type(ApiBuilder parent, string name, TypeAttributes attributes, Type extends, Type[] interfaces)
 {
     ApiTypeBuilder apiTypeBuilder = new ApiTypeBuilder
       {
     _typeBuilder = parent.ModuleBuilder.DefineType(name, attributes, extends, interfaces),
     _parent = parent
       };
       return apiTypeBuilder;
 }