Exemplo n.º 1
0
 public FixedFieldImplementationType(SourceMemberFieldSymbol field)
     : base(GeneratedNames.MakeFixedFieldImplementationName(field.Name), typeParameters: ImmutableArray <TypeParameterSymbol> .Empty, typeMap: TypeMap.Empty)
 {
     _field         = field;
     _constructor   = new SynthesizedInstanceConstructor(this);
     _internalField = new SynthesizedFieldSymbol(this, ((PointerTypeSymbol)field.Type).PointedAtType, FixedElementFieldName, isPublic: true);
 }
Exemplo n.º 2
0
 public FixedFieldImplementationType(SourceMemberFieldSymbol field)
     : base(field.ContainingType, GeneratedNames.MakeFixedFieldImplementationName(field.Name), TypeKind.Class)
 {
     this.field         = field;
     this.constructor   = new SynthesizedInstanceConstructor(this);
     this.internalField = new SynthesizedFieldSymbol(this, ((PointerTypeSymbol)field.Type).PointedAtType, FixedElementFieldName, isPublic: true);
 }