BACnet.SchemaCompiler.CodeGen.CSharpTypeGenerator.CSharpEmitter.Property C# (CSharp) Method

Property() public method

Creates a new property
public Property ( string name, string type, Access access = Access.Public, Access setter = Access.Private ) : void
name string The name of the property
type string The type of the property
access Access The access specifier for the property
setter Access The setter specifier for the property
return void
            public void Property(string name, string type, Access access = Access.Public, Access setter = Access.Private)
            {
                WriteLine("{0} {1} {2} {{ get; {3} set; }}",
                    access.ToAccessString(),
                    type,
                    name,
                    setter.ToAccessString());
            }

Same methods

CSharpTypeGenerator.CSharpEmitter::Property ( string name, string type, string body, Access access = Access.Public ) : void