Пример #1
0
 public RdmProperty(string name, RdmTypeReference type, bool isKey, IEnumerable <Annotation> annotations = null, Position position = default)
 {
     Name        = name;
     Type        = type;
     IsKey       = isKey;
     Annotations = annotations?.ToList().AsReadOnly() ?? (IReadOnlyList <Annotation>)Array.Empty <Annotation>();
 }
Пример #2
0
 public RdmServiceElement(string name, RdmTypeReference type, IEnumerable <Annotation> annotations, Position position)
 {
     Name        = name;
     Type        = type;
     Annotations = annotations.ToReadOnlyList();
     Position    = position;
 }
Пример #3
0
 public RdmParameter(string name, RdmTypeReference type, bool IsOptional = false,
                     IEnumerable <Annotation> annotations = null
                     , Position position = default)
 {
     Name        = name;
     Type        = type;
     Annotations = annotations ?? Enumerable.Empty <Annotation>();
 }
Пример #4
0
 public RdmServiceCollection(string name, RdmTypeReference type, IEnumerable <Annotation> annotations = null, Position position = default)
     : base(name, type, annotations, position)
 {
 }