Show / Hide Table of Contents

Delegate GetterHandler<T, S>

A getter delegate type

Namespace: HarmonyLib
Assembly: 0Harmony.dll
Syntax
[Obsolete("Use AccessTools.FieldRefAccess<T, S> for fields and AccessTools.MethodDelegate<Func<T, S>> for property getters")]
public delegate S GetterHandler<in T, out S>(T source);
Parameters
Type Name Description
T source

The instance get getter uses

Returns
Type Description
S

An delegate

Type Parameters
Name Description
T

Type that getter gets field/property value from

S

Type of the value that getter gets

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