/// <summary> /// Initializes a new instance of the <see cref="Field" /> class. /// </summary> /// <param name="definingType">The type definition where field is used.</param> internal Field(DataTypeDefinition definingType) { DefiningType = definingType; DefiningType.RegisterField(this, out Storage); }
/// <summary> /// Initializes a new instance of the <see cref="Field" /> class. /// </summary> /// <param name="definingType">The type definition where field is used.</param> /// <param name="fieldId">The explicit field identifier that should be used.</param> internal Field(DataTypeDefinition definingType, string fieldId) { DefiningType = definingType; DefiningType.RegisterField(this, out Storage); Storage = fieldId; }
/// <summary> /// Add runtime type definition into runtime assembly. /// </summary> /// <param name="definition">Added type definition.</param> public void AddDefinition(DataTypeDefinition definition) { _dataTypes.Add(definition.FullName, definition); }