Skip to content

Instantly share code, notes, and snippets.

@CopperStarSystems CopperStarSystems/non-slap-code.cs Secret
Last active Jan 14, 2017

What would you like to do?
An example of mixed abstraction levels in a method
public class SomeClass
string inputLine;
List<string> extractedValues = new List<string>();
// We're assuming that inputFile is a .csv file
// containing input values.
public void DoSomeWork(string inputFile)
using (var file = new StreamReader(inputFile))
while ((inputLine = file.ReadLine()) != null)
// do some work on the line
var inputData = inputLine.Split(',');
var desiredValue = inputData[3];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.