Wombat.MamaMsg.stringForType C# (CSharp) Method

stringForType() public method

Return the type name.
public stringForType ( mamaMsgType type ) : string
type mamaMsgType
return string
        public string stringForType(mamaMsgType type)
        {
            EnsurePeerCreated();
            return Marshal.PtrToStringAnsi(NativeMethods.mamaMsgType_stringForType((int)type));
        }

Usage Example

			public void onMsg (MamaSubscription subscription, MamaMsg msg)
			{
				if (quietness < 1)
				{
					Console.WriteLine("Recieved message of type " + msg.stringForType (msg.getType()) + " for " + subscription.subscSymbol);
				}
			}
MamaMsg