Пример #1
0
        internal static Metadata Find(ThemeData data)
        {
            if (data == null)
                return null;

            Meta myProps = ExpectedMetadataProperties(data);
            var metadata = new Metadata(myProps.Path, myProps.Type, myProps.Format);
            if (metadata.Validate())
                return metadata;
            return null;
        }
Пример #2
0
        internal static Metadata Find(ThemeData data)
        {
            if (data == null)
                return null;

            meta myProps = ExpectedMetadataProperties(data);
            Metadata metadata = new Metadata(myProps.path, myProps.type, myProps.format);
            if (metadata != null && metadata.Validate())
                return metadata;
            return null;
        }