Exemplo n.º 1
0
        /// <summary>
        /// Indicates whether the type is an IList&lt;T&gt; constructed generic type.
        /// </summary>
        private bool IsIListGenericType(out TypeData elementType)
        {
            if (GenericArguments.Count == 1 &&
                GenericTypeDefinition.IsType(typeof(IList <>)))
            {
                elementType = GenericArguments[0];
                return(true);
            }

            elementType = null;
            return(false);
        }