예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }
예제 #4
0
        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);
        }