C# Class OTAPI.Patcher.Engine.Extensions.FieldReplacementExtensions

Show file Open project: DeathCradle/Open-Terraria-API

Public Methods

Method Description
ReplaceWith ( this field, Mono.Cecil.PropertyDefinition property ) : void

Replaces all occurrences of a field with a property call by simply swapping the field instructions that load/set.

Method Details

ReplaceWith() public static method

Replaces all occurrences of a field with a property call by simply swapping the field instructions that load/set.
public static ReplaceWith ( this field, Mono.Cecil.PropertyDefinition property ) : void
field this
property Mono.Cecil.PropertyDefinition
return void