public static bool IsViewTypeValid(Type metadataViewType)
        {
            Assumes.NotNull(metadataViewType);

            // If the Metadata dictionary is cast compatible with the passed in type
            if (ExportServices.IsDefaultMetadataViewType(metadataViewType) ||
                metadataViewType.IsInterface ||
                ExportServices.IsDictionaryConstructorViewType(metadataViewType))
            {
                return(true);
            }

            return(false);
        }
        public static bool IsViewTypeValid(Type metadataViewType)
        {
            if (metadataViewType == null)
            {
                throw new ArgumentNullException(nameof(metadataViewType));
            }

            // If the Metadata dictionary is cast compatible with the passed in type
            if (ExportServices.IsDefaultMetadataViewType(metadataViewType) ||
                metadataViewType.IsInterface ||
                ExportServices.IsDictionaryConstructorViewType(metadataViewType))
            {
                return(true);
            }

            return(false);
        }