Exemplo n.º 1
0
 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 4
0
 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;
 }
Exemplo n.º 5
0
 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;
 }