Beispiel #1
0
        public void AddProperty(string propertyName, string type)
        {
            ProtoProperty property = new ProtoProperty()
            {
                propertyName = propertyName, type = type
            };

            this.m_properties.Add(property);
        }
Beispiel #2
0
        private string GetProperties()
        {
            string result = "";

            if (this.m_properties == null || this.m_properties.Count < 1)
            {
                return(result);
            }
            for (int i = 0; i < this.m_properties.Count; i++)
            {
                ProtoProperty property = this.m_properties[i];
                result += property.ToString(i + 1);
                if (i < this.m_properties.Count - 1)
                {
                    result += "\r\n";
                }
            }
            return(result);
        }