/// <summary> /// Create a synthetic field and add it to the given declaring type. /// </summary> public static XSyntheticFieldDefinition Create(XTypeDefinition declaringType, XSyntheticFieldFlags flags, string name, XTypeReference fieldType, object initialValue = null) { var field = new XSyntheticFieldDefinition(declaringType, flags, name, fieldType, initialValue); declaringType.Add(field); return(field); }
/// <summary> /// Add the given generated field to this type. /// </summary> internal override void Add(XSyntheticFieldDefinition field) { fields.Add(field); Reset(); }
/// <summary> /// Add the given generated field to this type. /// </summary> internal abstract void Add(XSyntheticFieldDefinition field);
/// <summary> /// Create a synthetic field and add it to the given declaring type. /// </summary> public static XSyntheticFieldDefinition Create(XTypeDefinition declaringType, XSyntheticFieldFlags flags, string name, XTypeReference fieldType, object initialValue = null) { var field = new XSyntheticFieldDefinition(declaringType, flags, name, fieldType, initialValue); declaringType.Add(field); return field; }
/// <summary> /// Add the given generated field to this type. /// </summary> internal override void Add(XSyntheticFieldDefinition field) { throw new NotImplementedException(); }
/// <summary> /// Add the given generated field to this type. /// </summary> internal override void Add(XSyntheticFieldDefinition field) { fields.Add(field); addedFieldCount++; }