Show / Hide Table of Contents

Class PropertyInfoExtensions

Various extensions for objects of type PropertyInfo.

Inheritance
object
PropertyInfoExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: TheXDS.MCART.Types.Extensions
Assembly: MCART.dll
Syntax
public static class PropertyInfoExtensions

Methods

| Edit this page View Source

IsReadWrite(PropertyInfo)

Gets a value indicating whether the property supports read and write.

Declaration
public static bool IsReadWrite(this PropertyInfo property)
Parameters
Type Name Description
PropertyInfo property

The property to check.

Returns
Type Description
bool

true if the property supports read and write; otherwise, false.

| Edit this page View Source

SetDefault(PropertyInfo)

Sets the value of a static property to its default value.

Declaration
public static void SetDefault(this PropertyInfo property)
Parameters
Type Name Description
PropertyInfo property

The property to reset.

| Edit this page View Source

SetDefault(PropertyInfo, object?)

Sets the value of a property on an object to its default value.

Declaration
public static void SetDefault(this PropertyInfo property, object? instance)
Parameters
Type Name Description
PropertyInfo property

The property to reset.

object instance

The instance of the object containing the property.

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX