Time Rewizer  v.1.1
Created by: Mark Oostveen
MarkOostveen.TimeRewizer.Editor.Baking.PropertyConversion< T1, T2 > Class Template Reference

Class Using More...

+ Collaboration diagram for MarkOostveen.TimeRewizer.Editor.Baking.PropertyConversion< T1, T2 >:

Public Member Functions

 PropertyConversion (Func< T2, T1 > method, Func< T1, T2 > reversedmethod)
 Create Property conversion Instance More...
 
T1 Execute (T2 input)
 Execute normal conversion More...
 
T2 ReversedExecute (T1 input)
 Execute reversed conversion More...
 

Detailed Description

Class Using

Template Parameters
T1
T2
Type Constraints
T1 :IProperties 
T2 :IProperties 

Constructor & Destructor Documentation

◆ PropertyConversion()

MarkOostveen.TimeRewizer.Editor.Baking.PropertyConversion< T1, T2 >.PropertyConversion ( Func< T2, T1 >  method,
Func< T1, T2 >  reversedmethod 
)

Create Property conversion Instance

Parameters
method
reversedmethod
25  {
26  m_ConvertionMethod = method;
27  m_ReversedConvertionMethod = reversedmethod;
28  }

Member Function Documentation

◆ Execute()

Execute normal conversion

Parameters
input
Returns
36  {
37  return m_ConvertionMethod.Invoke(input);
38  }

◆ ReversedExecute()

T2 MarkOostveen.TimeRewizer.Editor.Baking.PropertyConversion< T1, T2 >.ReversedExecute ( T1  input)

Execute reversed conversion

Parameters
input
Returns
46  {
47  return m_ReversedConvertionMethod.Invoke(input);
48  }