示例#1
0
        private void Parser_OnPropertyFound(object sender, PropertyHandlerEventArgs propertyInfo)
        {
            if (this.options.PublicOnly && propertyInfo.Namespace == NamespaceAttribute.Private) {
                return;
            }

            this.buffer.Append("\t" + propertyInfo.Namespace.ToString().ToLower());

            if (propertyInfo.IsStatic) {
                this.buffer.Append(" static");
            }

            this.buffer.Append(" var " + propertyInfo.Name);

            if (propertyInfo.Type.Length > 0) {
                this.buffer.Append(":" + propertyInfo.Type);
            }

            this.buffer.Append(";" + Environment.NewLine);
        }
示例#2
0
        private void Parser_OnPropertyFound(object sender, PropertyHandlerEventArgs propertyInfo)
        {
            this.buffer.Append("\t" + propertyInfo.Namespace.ToString().ToLower());

            if (propertyInfo.IsStatic) {
                this.buffer.Append(" static");
            }

            this.buffer.Append(" var " + propertyInfo.Name);

            if (propertyInfo.Type.Length > 0) {
                this.buffer.Append(":" + propertyInfo.Type);
            }

            this.buffer.Append(";" + Environment.NewLine);
        }