public static TssSdtUint operator ++(TssSdtUint v) { TssSdtUint num = new TssSdtUint(); if (v == null) { num.SetValue(1); return(num); } uint num2 = v.GetValue() + 1; num.SetValue(num2); return(num); }
public static TssSdtUint operator ++(TssSdtUint v) { TssSdtUint tssSdtUint = new TssSdtUint(); if (v == null) { tssSdtUint.SetValue(1u); } else { uint num = v.GetValue(); num += 1u; tssSdtUint.SetValue(num); } return(tssSdtUint); }
public static TssSdtUint operator --(TssSdtUint v) { TssSdtUint num = new TssSdtUint(); if (v == null) { uint num2 = 0; num2--; num.SetValue(num2); return(num); } uint num3 = v.GetValue() - 1; num.SetValue(num3); return(num); }
public static TssSdtUint operator --(TssSdtUint v) { TssSdtUint tssSdtUint = new TssSdtUint(); if (v == null) { uint num = 0u; num -= 1u; tssSdtUint.SetValue(num); } else { uint num2 = v.GetValue(); num2 -= 1u; tssSdtUint.SetValue(num2); } return(tssSdtUint); }
public static TssSdtUint operator ++(TssSdtUint v) { TssSdtUint tssSdtUint = new TssSdtUint(); if (object.Equals(v, null)) { uint num = 0u; num += 1u; tssSdtUint.SetValue(num); } else { uint num2 = v.GetValue(); num2 += 1u; tssSdtUint.SetValue(num2); } return(tssSdtUint); }
//compile err in Unity3D if we don't override operator-- public static TssSdtUint operator--(TssSdtUint v) { TssSdtUint obj = new TssSdtUint(); if (v == null) { uint new_v = 0; new_v -= 1; obj.SetValue(new_v); } else { uint new_v = v.GetValue(); new_v -= 1; obj.SetValue(new_v); } return obj; }
//reserver for custom memory pool imp public static TssSdtUint NewTssSdtUint() { TssSdtUint obj = new TssSdtUint(); obj.m_slot = TssSdtUintSlot.NewSlot(null); return obj; }