public TypeDescriptor(string typeName, bool isReferenceType = true, SerializableTypeKind kind = SerializableTypeKind.Class, bool isConcrete = true)
 {
     this.TypeName = typeName;
     this.IsReferenceType = isReferenceType;
     this.Kind = kind;
     this.IsConcreteType = isConcrete;
 }
Ejemplo n.º 2
0
        public TypeDescriptor(string namespaceName, string className, string assemblyName = TestConstants.ProjectAssemblyName, int typeParametersCount = 0, IEnumerable <TypeDescriptor> typeArguments = null, bool isReferenceType = true, SerializableTypeKind kind = SerializableTypeKind.Undefined, bool isConcrete = true)
        {
            this.NamespaceName       = namespaceName;
            this.ClassName           = className;
            this.IsReferenceType     = isReferenceType;
            this.Kind                = kind;
            this.IsConcreteType      = isConcrete;
            this.AssemblyName        = assemblyName;
            this.TypeParametersCount = typeParametersCount;

            if (typeArguments != null)
            {
                this.TypeArguments = new List <TypeDescriptor>(typeArguments);
            }
        }