CodeParameterDeclarationExpressionCollectionExtensions¶
Namespace:
SideXP.Core.EditorOnly
Extensions for CodeParameterDeclarationExpressionCollection instances.
Methods¶
Add(CodeParameterDeclarationExpressionCollection, Type, string, CodeNamespace, CodeNamespace)¶
public static int Add(CodeParameterDeclarationExpressionCollection collection, Type type, string name, CodeNamespace importsNamespace, CodeNamespace domNamespace = null)
Adds a parameter declaration to this collection, importing the given parameter type if it's not yet.
Parameters
collection: The collection to which the parameter declaration is added.type: The type of the parameter.name: The name of the parameter.
Returns
The index at which the new element was inserted.
Add(CodeParameterDeclarationExpressionCollection, ParameterInfo, CodeNamespace, CodeNamespace)¶
public static int Add(CodeParameterDeclarationExpressionCollection collection, ParameterInfo param, CodeNamespace importsNamespace, CodeNamespace domNamespace = null)
Adds a parameter declaration to this collection, importing the given parameter type if it's not yet.
Parameters
collection: The collection to which the parameter declaration is added.
Returns
The index at which the new element was inserted.