System.Runtime.Serialization.Plists.TypeCacheItem.TypeCacheItem C# (CSharp) Method

TypeCacheItem() public method

Initializes a new instance of the TypeCacheItem class.
public TypeCacheItem ( Type type ) : System
type System.Type The type to cache.
return System
        public TypeCacheItem(Type type)
        {
            if (type == null)
            {
                throw new ArgumentNullException("type", "type cannot be null.");
            }

            this.type = type;
            this.hasCustomContract = type.GetCustomAttributes(typeof(DataContractAttribute), false).Length > 0;
            this.InitializeFields();
            this.InitializeProperties();
        }