System.Web.Caching.OutputCache.Deserialize C# (CSharp) Method

Deserialize() private method

private Deserialize ( Stream stream ) : object
stream Stream
return object
		public static object Deserialize (Stream stream)
		{
			if (stream == null)
				throw new ArgumentNullException ("stream");

			object o = new BinaryFormatter ().Deserialize (stream);
			if (o == null || IsInvalidType (o))
				throw new ArgumentException ("The provided parameter is not of a supported type for serialization and/or deserialization.");

			return o;
		}