// ex 1. receive and convert user input. string userInput = "123"; float userInputAsFloat = float.Parse(userInput); int userInputAsInt = (int)Math.Round(userInputAsFloat); // ex 2. prepare an object for json transport. Dictionary<string,object> packet = new Dictionary<string,object>(); string packetAsJson = packet.ToJson(); // ex 3. interface with a component from various angles. IUnknown foo = MyObjectFactory.CreateFoo(); IVisualizer fooAsVisualizer = (IVisualizer)foo; ILocator fooAsLocator = (ILocator)foo;
Thoughts for/against? Does this convention have a name?