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>(); }
public RdmServiceElement(string name, RdmTypeReference type, IEnumerable <Annotation> annotations, Position position) { Name = name; Type = type; Annotations = annotations.ToReadOnlyList(); Position = position; }
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>(); }
public RdmServiceCollection(string name, RdmTypeReference type, IEnumerable <Annotation> annotations = null, Position position = default) : base(name, type, annotations, position) { }