Exemple #1
0
        internal static IEnumerable <SimpleFieldDescription> CreateArrayField(ITypeDescription type)
        {
            var arrayType = ArrayDescription.Create(type, 1);

            return(new[] { SimpleFieldDescription.Create(FieldName, arrayType) });
        }
Exemple #2
0
 internal static IEnumerable <SimpleFieldDescription> CreateField(string fieldName,
                                                                  ITypeDescription type)
 {
     return(new[] { SimpleFieldDescription.Create(fieldName, type) });
 }