예제 #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);
 }
예제 #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;
 }
예제 #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);
 }