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(); }
public WarmEventArgs(FLProgram root, IWarmable loadedBuffer) : base(root) { LoadedBuffer = loadedBuffer; }