Skip to content

Instantly share code, notes, and snippets.

@ChrisMoney
Last active August 11, 2016 21:43
Show Gist options
  • Save ChrisMoney/88590f7565882080527e1b5b700be72a to your computer and use it in GitHub Desktop.
Save ChrisMoney/88590f7565882080527e1b5b700be72a to your computer and use it in GitHub Desktop.
Void Interface method that wraps a return method
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
// methods encapsulated by the interface method of various return types can be placed inside of the void interface methods
// could use a public global class property to out a return value
namespace Dispenser
{
interface IDispenser
{
void PositionCardToRead();
void Read();
void Dispense();
}
}
public void Read()
{
long corpID = 0;
long acctNo = 0;
ScanCard(out corpID, out acctNo);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment