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

OverrideProperty() public method

Overrides a get-only property
public OverrideProperty ( string name, string type, string body, Access access = Access.Public ) : void
name string The name of the property
type string The type of the property
body string The body of the property accessor
access Access The access level of the property
return void
            public void OverrideProperty(string name, string type, string body, Access access = Access.Public)
            {
                WriteLine("{0} override {1} {2} {{ get {{ {3} }} }}",
                    access.ToAccessString(),
                    type,
                    name,
                    body);
            }