Пример #1
0
    public static TssSdtUlong operator ++(TssSdtUlong v)
    {
        TssSdtUlong @ulong = new TssSdtUlong();

        if (v == null)
        {
            @ulong.SetValue(1L);
            return(@ulong);
        }
        ulong num = v.GetValue() + ((ulong)1L);

        @ulong.SetValue(num);
        return(@ulong);
    }
Пример #2
0
    public static TssSdtUlong operator --(TssSdtUlong v)
    {
        TssSdtUlong @ulong = new TssSdtUlong();

        if (v == null)
        {
            ulong num = 0L;
            num -= (ulong)1L;
            @ulong.SetValue(num);
            return(@ulong);
        }
        ulong num2 = v.GetValue() - ((ulong)1L);

        @ulong.SetValue(num2);
        return(@ulong);
    }
Пример #3
0
    public static TssSdtUlong operator ++(TssSdtUlong v)
    {
        TssSdtUlong tssSdtUlong = new TssSdtUlong();

        if (v == null)
        {
            tssSdtUlong.SetValue(1uL);
        }
        else
        {
            ulong num = v.GetValue();
            num += 1uL;
            tssSdtUlong.SetValue(num);
        }
        return(tssSdtUlong);
    }
Пример #4
0
    public static TssSdtUlong operator --(TssSdtUlong v)
    {
        TssSdtUlong tssSdtUlong = new TssSdtUlong();

        if (v == null)
        {
            ulong num = 0uL;
            num -= 1uL;
            tssSdtUlong.SetValue(num);
        }
        else
        {
            ulong num2 = v.GetValue();
            num2 -= 1uL;
            tssSdtUlong.SetValue(num2);
        }
        return(tssSdtUlong);
    }
Пример #5
0
    public static TssSdtUlong operator ++(TssSdtUlong v)
    {
        TssSdtUlong tssSdtUlong = new TssSdtUlong();

        if (object.Equals(v, null))
        {
            ulong num = 0uL;
            num += 1uL;
            tssSdtUlong.SetValue(num);
        }
        else
        {
            ulong num2 = v.GetValue();
            num2 += 1uL;
            tssSdtUlong.SetValue(num2);
        }
        return(tssSdtUlong);
    }
Пример #6
0
 //compile err in Unity3D if we don't override operator--
 public static TssSdtUlong operator--(TssSdtUlong v)
 {
     TssSdtUlong obj = new TssSdtUlong();
     if (v == null)
     {
         ulong new_v = 0;
         new_v -= 1;
         obj.SetValue(new_v);
     }
     else
     {
         ulong new_v = v.GetValue();
         new_v -= 1;
         obj.SetValue(new_v);
     }
     return obj;
 }
Пример #7
0
 //reserver for custom memory pool imp
 public static TssSdtUlong NewTssSdtUlong()
 {
     TssSdtUlong obj = new TssSdtUlong();
     obj.m_slot = TssSdtUlongSlot.NewSlot(null);
     return obj;
 }