Пример #1
0
        protected JavaPackageElement(JavaPackage parent, string name, JavaPackageElementTypes type)
        {
            Parent = parent;
            Name   = name;

            Type = type;

            Extension = Type.GetExtension();
        }
Пример #2
0
 public static string GetExtension(this JavaPackageElementTypes type)
 {
     return(_typesByEx.FirstOrDefault(t => t.Value == type).Key ?? string.Empty);
 }