/// <summary> /// Creates a new array type /// </summary> /// <param name="elementType">The type of the element</param> public ArrayType(BaseType elementType) : base(TypeSystem.ArrayTypeName(elementType), true, true, false) { this.ElementType = elementType; }
/// <summary> /// Finds the array type for the given element type /// </summary> /// <param name="elementType">The element type</param> /// <param name="tryToConstruct">Indicates if to try to construct the type if does not exist.</param> /// <returns>The type or null</returns> public ArrayType FindArrayType(BaseType elementType, bool tryToConstruct = true) { return(this.FindType(TypeSystem.ArrayTypeName(elementType), tryToConstruct) as ArrayType); }