UnityEngine.Networking.MsgType.MsgTypeToString C# (CSharp) Method

MsgTypeToString() public static method

Returns the name of internal message types by their id.

public static MsgTypeToString ( short value ) : string
value short A internal message id value.
return string
        public static string MsgTypeToString(short value)
        {
            if ((value < 0) || (value > 0x2f))
            {
                return string.Empty;
            }
            string str2 = msgLabels[value];
            if (string.IsNullOrEmpty(str2))
            {
                str2 = "[" + value + "]";
            }
            return str2;
        }
    }

Usage Example

コード例 #1
0
 public override string ToString()
 {
     return(string.Concat(new object[]
     {
         MsgType.MsgTypeToString(this.msgType),
         ": count=",
         this.count,
         " bytes=",
         this.bytes
     }));
 }
All Usage Examples Of UnityEngine.Networking.MsgType::MsgTypeToString