예제 #1
0
파일: Method.cs 프로젝트: rhboyd/jsii
 public Method
 (
     bool isInitializer,
     bool isProtected,
     bool isAbstract,
     Parameter[] parameters = null,
     Docs docs                   = null,
     string name                 = null,
     TypeReference returns       = null,
     bool?isVariadic             = null,
     bool?isStatic               = null,
     UserTypeReference overrides = null
 )
 {
     IsInitializer = isInitializer;
     IsProtected   = isProtected;
     IsAbstract    = isAbstract;
     Parameters    = parameters;
     Docs          = docs;
     Name          = name;
     Returns       = returns;
     IsVariadic    = isVariadic;
     IsStatic      = isStatic;
     Overrides     = overrides;
 }
예제 #2
0
 public Property
 (
     string name,
     TypeReference type,
     bool?isImmutable            = null,
     bool?isProtected            = null,
     bool?isAbstract             = null,
     Docs docs                   = null,
     bool?isStatic               = null,
     bool?isConstant             = null,
     UserTypeReference overrides = null
 )
 {
     Name        = name ?? throw new ArgumentNullException(nameof(name));
     Type        = type ?? throw new ArgumentNullException(nameof(type));
     IsImmutable = isImmutable;
     IsProtected = isProtected;
     IsAbstract  = isAbstract;
     Docs        = docs;
     IsStatic    = isStatic;
     IsConstant  = isConstant;
     Overrides   = overrides;
 }