QSHistoryLog.HistoryObjectDesc.HistoryObjectDesc C# (CSharp) Method

HistoryObjectDesc() public method

public HistoryObjectDesc ( Type type ) : System
type System.Type
return System
        public HistoryObjectDesc(Type type)
        {
            PropertiesKeyTitleFunc = new Dictionary<string, GetDicKeyTitle> ();
            ObjectType = type;
            ObjectName = type.Name;

            var att = type.GetCustomAttributes (typeof(OrmSubjectAttribute), true);
            if (att.Length > 0 && !String.IsNullOrWhiteSpace((att [0] as OrmSubjectAttribute).ObjectName))
                DisplayName = (att [0] as OrmSubjectAttribute).ObjectName;
            else
                DisplayName = ObjectName;
        }
HistoryObjectDesc