static void Main(string[] args)
        {
            BadWeather  badWeather  = new BadWeather();
            GoodWeather goodWeather = new GoodWeather();

            IRainable rainable = badWeather as IRainable;

            rainable.BadMethod();
            IWindable windable = badWeather as IWindable;

            windable.BadMethod();

            ISunable sunable = goodWeather as ISunable;

            sunable.GoodMethod();
            IWarmable warmable = goodWeather as IWarmable;

            warmable.GoodMethod();

            Console.ReadKey();
        }
Example #2
0
 public WarmEventArgs(FLProgram root, IWarmable loadedBuffer) : base(root)
 {
     LoadedBuffer = loadedBuffer;
 }