Exemplo n.º 1
0
 /// <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);
 }
Exemplo n.º 2
0
 /// <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;
 }
Exemplo n.º 3
0
 /// <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);
 }