Show / Hide Table of Contents

Interface IGetsAccessorFunction

An object which can provide an accessor function which represents getting a value from a named member of a specified type.

Namespace: CSF.Validation.ManifestModel
Assembly: CSF.Validation.dll
Syntax
public interface IGetsAccessorFunction

Methods

| Improve this Doc View Source

GetAccessorFunction(Type, String)

Gets the accessor function which corresponds to getting a value from the specified type by using the specified memberName.

Declaration
AccessorFunctionAndType GetAccessorFunction(Type type, string memberName)
Parameters
Type Name Description
System.Type type

The type of object which shall be the input to the function.

System.String memberName

The name of the member to get/access/execute in order to get the output of the function.

Returns
Type Description
AccessorFunctionAndType

An AccessorFunctionAndType containing both the function and also the expected return-type of that function.

Exceptions
Type Condition
System.ArgumentNullException

If either memberName or type are null.

System.ArgumentException

If either the type does not have an accessible member named memberName or if that member has a langword_csharp_void return-type.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX