Exemplo n.º 1
0
    public static TssSdtUshort operator ++(TssSdtUshort v)
    {
        TssSdtUshort @ushort = new TssSdtUshort();

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

        @ushort.SetValue(num);
        return(@ushort);
    }
Exemplo n.º 2
0
    public static TssSdtUshort operator ++(TssSdtUshort v)
    {
        TssSdtUshort tssSdtUshort = new TssSdtUshort();

        if (v == null)
        {
            tssSdtUshort.SetValue(1);
        }
        else
        {
            ushort num = v.GetValue();
            num += 1;
            tssSdtUshort.SetValue(num);
        }
        return(tssSdtUshort);
    }
Exemplo n.º 3
0
    public static TssSdtUshort operator --(TssSdtUshort v)
    {
        TssSdtUshort @ushort = new TssSdtUshort();

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

        @ushort.SetValue(num2);
        return(@ushort);
    }
Exemplo n.º 4
0
    public static TssSdtUshort operator --(TssSdtUshort v)
    {
        TssSdtUshort tssSdtUshort = new TssSdtUshort();

        if (object.Equals(v, null))
        {
            ushort num = 0;
            num -= 1;
            tssSdtUshort.SetValue(num);
        }
        else
        {
            ushort num2 = v.GetValue();
            num2 -= 1;
            tssSdtUshort.SetValue(num2);
        }
        return(tssSdtUshort);
    }
Exemplo n.º 5
0
Arquivo: TssSdt.cs Projeto: fengqk/Art
 //compile err in Unity3D if we don't override operator--
 public static TssSdtUshort operator--(TssSdtUshort v)
 {
     TssSdtUshort obj = new TssSdtUshort();
     if (v == null)
     {
         ushort new_v = 0;
         new_v -= 1;
         obj.SetValue(new_v);
     }
     else
     {
         ushort new_v = v.GetValue();
         new_v -= 1;
         obj.SetValue(new_v);
     }
     return obj;
 }
Exemplo n.º 6
0
Arquivo: TssSdt.cs Projeto: fengqk/Art
 //reserver for custom memory pool imp
 public static TssSdtUshort NewTssSdtUshort()
 {
     TssSdtUshort obj = new TssSdtUshort();
     obj.m_slot = TssSdtUshortSlot.NewSlot(null);
     return obj;
 }