Sha256: 4db36305012f6e4b28b864e8432bd702d17fded361cc10cb8e1f18cd69ea4f77

Contents?: true

Size: 504 Bytes

Versions: 3

Compression:

Stored size: 504 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

3 entries across 3 versions & 1 rubygems

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