Esempio n. 1
0
        public List <DataType> GetEnumeratedReferenceTypes(DataType dataType)
        {
            List <DataType> referenceTypes = new List <DataType>();
            UDTCompiler     udtCompiler    = CreateUDTCompiler();

            referenceTypes.Add(dataType);
            GetEnumeratedReferenceTypes(dataType, referenceTypes, udtCompiler);

            return(referenceTypes);
        }
Esempio n. 2
0
        public void GetEnumeratedReferenceTypes(DataType dataType, List <DataType> dataTypes, UDTCompiler compiler)
        {
            IEnumerable <DataType> referencingTypes = compiler.EnumerateReferencingTypes(compiler.GetType(dataType.Category, dataType.Identifier));

            foreach (DataType referencingType in referencingTypes)
            {
                dataTypes.Add(referencingType);
                GetEnumeratedReferenceTypes(referencingType, dataTypes, compiler);
            }
        }
Esempio n. 3
0
 /// <summary>
 /// Creates a new instance of the <see cref="ArrayType"/> class.
 /// </summary>
 /// <param name="underlyingType">The underlying type being made into an array.</param>
 public ArrayType(DataType underlyingType)
 {
     m_underlyingType = underlyingType;
 }