Show / Hide Table of Contents

Class PropertyExtensions

Various extension methods for property reflection.

Inheritance
object
PropertyExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: DotNext.Reflection
Assembly: DotNext.dll
Syntax
public static class PropertyExtensions

Methods

| Edit this page View Source

IsExternalInit(PropertyInfo)

Checks whether the initialization of the property is allowed during object construction.

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

The property to check.

Returns
Type Description
bool

true if the property has init accessor; otherwise, false.

See Also
init (C# Reference)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾