private static TemplateData CreateTemplateData <T>(int id, dynamic value = null) { return(new TemplateData( id, TextAttributeType.GetInstance().GetNameById(id), value, typeof(T))); }
#pragma warning disable CA1024 // Use properties where appropriate /// <summary> /// static method to get an instance of this class /// singleton /// </summary> /// <returns></returns> public static TextAttributeType GetInstance() { if (sInstance == null) { sInstance = new TextAttributeType(); } return(sInstance); }