Пример #1
0
        public ResourceDefinition(ResourceManifest manifest, string type, string name)
        {
            Manifest = manifest;
            Type     = type;
            Name     = name;

            TagName = _resourceTypeTagNames.ContainsKey(Type) ? _resourceTypeTagNames[Type] : "meta";
            FilePathAttributeName = _filePathAttributes.ContainsKey(TagName) ? _filePathAttributes[TagName] : null;
            TagRenderMode         = _fileTagRenderModes.ContainsKey(TagName) ? _fileTagRenderModes[TagName] : TagRenderMode.Normal;
        }
 public ResourceManifest Add(ResourceManifest manifest)
 {
     ResourceManifests.Add(manifest);
     return(manifest);
 }