Пример #1
0
 public VendorInfo()
 {
     Behaviour    = Behaviour.Default;
     Name         = "";
     DisplayName  = "";
     UrlElement   = "";
     Description  = "";
     InternalID   = (new Guid()).ToString();
     HasExpenses  = false;
     SecurityData = new SecurityData();
     ClientSide   = new ClientSide();
     m_oGuid      = new Guid();
 }         // constructor
Пример #2
0
        }         // ToString

        public object Clone()
        {
            var oRes = new SecurityData {
                Fields            = new List <FieldInfo>(),
                ToStringArguments = new List <string>()
            };

            foreach (FieldInfo fi in Fields)
            {
                oRes.Fields.Add((FieldInfo)fi.Clone());
            }

            foreach (string s in ToStringArguments)
            {
                oRes.ToStringArguments.Add((string)s.Clone());
            }

            return(oRes);
        } // Clone