PostSharp 6.10 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Reflection Namespace / Parameter­Kind­Extensions Class / Parameter­Kind­Extensions Methods / Parameter­Kind­Extensions.​Is­Output­Parameter Method

ParameterKindExtensions.IsOutputParameter Method

Determines whether a parameter of a given ParameterKind has a meaningful output value (but is not the return parameter; in C#, that's ref and out parameters).

Namespace:  PostSharp.Reflection
Assembly:  PostSharp (in PostSharp.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
public static bool IsOutputParameter(
	this ParameterKind parameterKind
)

Parameters

parameterKind
Type: PostSharp.Reflection.ParameterKind

Return Value

Type: Boolean
true if parameterKind equals to ByRefOut or ByRefInOut, otherwise false.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ParameterKind. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also