コード例 #1
0
ファイル: CSharpField.cs プロジェクト: szawaski/Zerra
 public CSharpField(string name, CSharpUnresolvedType type, bool isPublic, bool isStatic, bool isReadOnly, IReadOnlyList <CSharpAttribute> attribues)
 {
     this.Name       = name;
     this.Type       = type;
     this.IsPublic   = isPublic;
     this.IsStatic   = isStatic;
     this.IsReadOnly = isReadOnly;
     this.Attributes = attribues;
 }
コード例 #2
0
 public CSharpParameter(string name, CSharpUnresolvedType type, bool isIn, bool isOut, bool isRef, string defaultValue)
 {
     this.Name         = name;
     this.Type         = type;
     this.IsIn         = isIn;
     this.IsOut        = isOut;
     this.IsRef        = isRef;
     this.DefaultValue = defaultValue;
 }
コード例 #3
0
 public CSharpMethod(string name, CSharpUnresolvedType returnType, bool isPublic, bool isStatic, bool isVirtual, bool isAbstract, bool isImplemented, IReadOnlyList <CSharpParameter> parameters, IReadOnlyList <CSharpAttribute> attributes)
 {
     this.Name          = name;
     this.ReturnType    = returnType;
     this.IsPublic      = isPublic;
     this.IsStatic      = isStatic;
     this.IsVirtual     = isVirtual;
     this.IsAbstract    = isAbstract;
     this.IsImplemented = isImplemented;
     this.Parameters    = parameters;
     this.Attributes    = attributes;
 }
コード例 #4
0
ファイル: CSharpProperty.cs プロジェクト: szawaski/Zerra
 public CSharpProperty(string name, CSharpUnresolvedType type, bool isPublic, bool isStatic, bool isVirtual, bool isAbstract, bool hasGet, bool hasSet, bool isGetPublic, bool isSetPublic, IReadOnlyList <CSharpAttribute> attributes)
 {
     this.Name        = name;
     this.Type        = type;
     this.IsPublic    = isPublic;
     this.IsStatic    = isStatic;
     this.IsVirtual   = isVirtual;
     this.IsAbstract  = isAbstract;
     this.HasGet      = hasGet;
     this.HasSet      = hasSet;
     this.IsGetPublic = isGetPublic;
     this.IsSetPublic = isSetPublic;
     this.Attributes  = attributes;
 }
コード例 #5
0
ファイル: CSharpDelegate.cs プロジェクト: szawaski/Zerra
 public CSharpDelegate(CSharpNamespace ns, IReadOnlyList <CSharpNamespace> usings, string name, CSharpUnresolvedType returnType, bool isPublic, IReadOnlyList <CSharpParameter> parameters, IReadOnlyList <CSharpAttribute> attributes)
     : base(ns, usings, name, CSharpObjectType.Delegate, Array.Empty <CSharpUnresolvedType>(), isPublic, false, false, false, Array.Empty <CSharpObject>(), Array.Empty <CSharpObject>(), Array.Empty <CSharpObject>(), Array.Empty <CSharpEnum>(), Array.Empty <CSharpDelegate>(), Array.Empty <CSharpProperty>(), Array.Empty <CSharpMethod>(), attributes)
 {
     this.ReturnType = returnType;
     this.Parameters = parameters;
 }