示例#1
0
        /// <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);
        }
示例#2
0
 /// <summary>
 /// Add the given generated field to this type.
 /// </summary>
 internal override void Add(XSyntheticFieldDefinition field)
 {
     fields.Add(field);
     Reset();
 }
示例#3
0
 /// <summary>
 /// Add the given generated field to this type.
 /// </summary>
 internal abstract void Add(XSyntheticFieldDefinition field);
 /// <summary>
 /// Add the given generated field to this type.
 /// </summary>
 internal override void Add(XSyntheticFieldDefinition field)
 {
     fields.Add(field);
     Reset();
 }
 /// <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++;
 }