All pastes #477874 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-05-08 21:48 UTC
rendered paste body
		public T Receive<T>(T information)
		{
			if (information is Message)
			{
				(information as Message).Id = 30;
			}
			else if (information is int)
			{
				(information as int) = 5;
				//(int)information = 5;
			}

			return information;
		}