public static TssSdtLong operator ++(TssSdtLong v) { TssSdtLong @long = new TssSdtLong(); if (v == null) { @long.SetValue(1L); return(@long); } long num = v.GetValue() + 1L; @long.SetValue(num); return(@long); }
public static TssSdtLong operator --(TssSdtLong v) { TssSdtLong tssSdtLong = new TssSdtLong(); if (v == null) { tssSdtLong.SetValue(-1L); } else { long num = v.GetValue(); num -= 1L; tssSdtLong.SetValue(num); } return(tssSdtLong); }
public static TssSdtLong operator --(TssSdtLong v) { TssSdtLong tssSdtLong = new TssSdtLong(); if (object.Equals(v, null)) { long num = 0L; num -= 1L; tssSdtLong.SetValue(num); } else { long num2 = v.GetValue(); num2 -= 1L; tssSdtLong.SetValue(num2); } return(tssSdtLong); }
//compile err in Unity3D if we don't override operator-- public static TssSdtLong operator--(TssSdtLong v) { TssSdtLong obj = new TssSdtLong(); if (v == null) { obj.SetValue(-1); } else { long new_v = v.GetValue(); new_v -= 1; obj.SetValue(new_v); } return obj; }