예제 #1
0
 private static TemplateData CreateTemplateData <T>(int id, dynamic value = null)
 {
     return(new TemplateData(
                id,
                TextAttributeType.GetInstance().GetNameById(id),
                value,
                typeof(T)));
 }
예제 #2
0
#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);
        }