Sha256: 32e3422d52edf093afcbd2f55e54be04ea9bcff2b2ae9677460858a2847f9436

Contents?: true

Size: 475 Bytes

Versions: 5

Compression:

Stored size: 475 Bytes

Contents

using System;

namespace ClassLibrary
{
	public class Consumer 
	{
		private int count = 0;
		
		public void CallMethod(IHaveAMethod consumable)
		{
			consumable.MyMethod("thing");
		}
		
		public void RegisterEvent(IHaveAnEvent e)
		{
			e.MyEvent += (s,ev) => Console.WriteLine(s);
		}
		
		public void CallSetter(IHaveAProperty p)
		{
			p.MyProperty = ""+count;
			count++;
		}

		public void CallGetter(IHaveAProperty p)
		{
			Console.WriteLine(p.MyProperty);
		}
	}
}

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
markryall-orangutan-0.0.1 spec/Consumer.cs
markryall-orangutan-0.0.2 spec/clr/Consumer.cs
markryall-orangutan-0.0.3 spec/clr/Consumer.cs
markryall-orangutan-0.0.4 spec/clr/Consumer.cs
orangutan-0.0.1 spec/Consumer.cs