public static MicroResource FromEDName(string edname, string fallbackName = null, string categoryEdName = null) { if (edname == null) { return(None); } string normalizedEDName = edname .ToLowerInvariant() .Replace("$", "") .Replace("_name;", ""); var result = ResourceBasedLocalizedEDName <MicroResource> .FromEDName(normalizedEDName); result.fallbackLocalizedName = fallbackName; if (!string.IsNullOrEmpty(categoryEdName)) { result.Category = MicroResourceCategory.FromEDName(categoryEdName); } return(result); }
private MicroResource(string edname, MicroResourceCategory category, long?EDID = null) : base(edname, edname) { this.Category = category; this.EDID = EDID; }