131b768f b8e9 c156 fd11 40025655a2bb - akesseler/Plexdata.Utilities.Templates GitHub Wiki

ArgumentExtension.CanExpand Method

Determines whether the argument can be expanded.

Namespace: Plexdata.Utilities.Formatting.Extensions
Assembly: Plexdata.Utilities.Templates (in Plexdata.Utilities.Templates.dll) Version: 1.0.0

Syntax

C#

private static bool CanExpand(
	this Object argument
)

Parameters

 

argument
Type: System.Object
The object to be checked.

Return Value

Type: Boolean
True is argument if the argument is derived from IEnumerable. False is returned if either the argument is null or it is an instance of class String.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Object. 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).

Remarks

This method determines whether the argument can be expanded. For example (almost) each type derived from IEnumerable can be expanded.

See Also

Reference

ArgumentExtension Class
Plexdata.Utilities.Formatting.Extensions Namespace

⚠️ **GitHub.com Fallback** ⚠️