Example #1
0
 private protected FieldDefinition(string name, FieldKind fieldType, FieldFlags flags, object defaultValue)
 {
     Name         = name;
     Kind         = fieldType;
     Flags        = flags;
     DefaultValue = defaultValue;
 }
Example #2
0
 internal ResourceField(string name, FieldKind fieldType, FieldFlags flags = default, T defaultValue = default)
     : base(name, fieldType, flags, defaultValue)
 {
     Debug.Assert(typeof(T) == fieldType.Type);
 }
 private protected TaskField(string name, FieldKind fieldType, FieldFlags flags, object defaultValue)
     : base(name, fieldType, flags | FieldFlags.Task, defaultValue)
 {
 }