コード例 #1
0
        public static TypeDescription StringType(int length = 0,
                                                 AllowedLengthEnum allowedLength = AllowedLengthEnum.Variable)
        {
            var stringQualifier = new StringQualifiers(length, allowedLength);

            return(new TypeDescription(new TypeTypeValue[] { TypeString() }, null, stringQualifier));
        }
コード例 #2
0
 public TypeDescription(IEnumerable <TypeTypeValue> types,
                        NumberQualifiers numberQualifiers         = null,
                        StringQualifiers stringQualifiers         = null,
                        DateQualifiers dateQualifiers             = null,
                        BinaryDataQualifiers binaryDataQualifiers = null)
 {
     _types.AddRange(types);
     NumberQualifiers     = numberQualifiers ?? new NumberQualifiers();
     StringQualifiers     = stringQualifiers ?? new StringQualifiers();
     DateQualifiers       = dateQualifiers ?? new DateQualifiers();
     BinaryDataQualifiers = binaryDataQualifiers ?? new BinaryDataQualifiers();
 }