C# Class AutoCompare.Compilation.NullChecked

Only because it's cleaner than using Tuples
Show file Open project: StevenGilligan/AutoCompare Class Usage Examples

Public Methods

Method Description
NullChecked ( Context ctx, Type propType ) : System

Wraps PropA and PropB from the context into ternary operators (ex : a == null ? (PropType)null : a.Prop)

Method Details

NullChecked() public method

Wraps PropA and PropB from the context into ternary operators (ex : a == null ? (PropType)null : a.Prop)
public NullChecked ( Context ctx, Type propType ) : System
ctx Context
propType System.Type
return System