public void AddPropertyDeclaration( string modifiers, string propType, string name, bool hasGetter, bool hasSetter) { InterfaceMemberDeclarationBlock newDecl = new InterfaceMemberDeclarationBlock(); string accum = modifiers; if (!string.IsNullOrEmpty(accum)) { accum += " "; } accum += propType; accum += " " + name; newDecl.Text.Text = accum; newDecl.AppendPropertyAccessors(hasGetter, hasSetter); Add(newDecl); }
public void AddIndexerDeclaration( string modifiers, string returnType, string parameters, bool hasGetter, bool hasSetter) { InterfaceMemberDeclarationBlock newDecl = new InterfaceMemberDeclarationBlock(); string accum = modifiers; if (!string.IsNullOrEmpty(accum)) { accum += " "; } accum += returnType; accum += " this"; newDecl.Text.Text = accum; newDecl.AppendThisParameters(parameters); newDecl.AppendPropertyAccessors(hasGetter, hasSetter); Add(newDecl); }
public void AddPropertyDeclaration( string modifiers, string propType, string name, bool hasGetter, bool hasSetter) { InterfaceMemberDeclarationBlock newDecl = new InterfaceMemberDeclarationBlock(); string accum = modifiers; if (!string.IsNullOrEmpty(accum)) { accum += " "; } accum += propType; accum += " " + name; newDecl.Text.Text = accum; newDecl.AppendPropertyAccessors(hasGetter, hasSetter); Add(newDecl); }
public void AddIndexerDeclaration( string modifiers, string returnType, string parameters, bool hasGetter, bool hasSetter) { InterfaceMemberDeclarationBlock newDecl = new InterfaceMemberDeclarationBlock(); string accum = modifiers; if (!string.IsNullOrEmpty(accum)) { accum += " "; } accum += returnType; accum += " this"; newDecl.Text.Text = accum; newDecl.AppendThisParameters(parameters); newDecl.AppendPropertyAccessors(hasGetter, hasSetter); Add(newDecl); }