Last active
August 11, 2016 21:43
-
-
Save ChrisMoney/88590f7565882080527e1b5b700be72a to your computer and use it in GitHub Desktop.
Void Interface method that wraps a return method
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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