Check if property exists.
Namespace: MonoSoftware.CoreAssembly: MonoSoftware.Core (in MonoSoftware.Core.dll) Version: 1.0.40.669 (1.0.40.669)
Syntax
C# |
---|
public static bool PropertyExists(
this Object o,
string propertyName
) |
Visual Basic |
---|
<ExtensionAttribute>
Public Shared Function PropertyExists (
o As Object,
propertyName As String
) As Boolean |
Visual C++ |
---|
public:
[ExtensionAttribute]
static bool PropertyExists(
Object^ o,
String^ propertyName
) |
F# |
---|
static member PropertyExists :
o : Object *
propertyName : string -> bool
|
Return Value
Type:
BooleanTrue if exists, False if not
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).
See Also