Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@cmpunches
Created October 15, 2015 06:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmpunches/4060c4a740ebe99a9786 to your computer and use it in GitHub Desktop.
Save cmpunches/4060c4a740ebe99a9786 to your computer and use it in GitHub Desktop.
class AClassNamedLambda
{
public bool enabled;
public string Zone { get; set; }
public string JOBID { get; set; }
public AClassNamedLambda(INI Settings, string localZone)
{
// need the zone in the constructor to create the object
Zone = Settings.Read(localZone, "Zone");
JOBID = Settings.Read(localZone, "jobid");
}
}
class Program
{
private static void fileDumps()
{
// implement
}
private static List<AClassNamedLambda> GetZonesFrom(INI Settings)
{
// but wont know the name of the Zone yet.
List<AClassNamedLambda> RetVal = new List<AClassNamedLambda(Settings) ;
string[] LambdaString = Settings.Read("LambdaIndex", "Lambdas").Split(',');
foreach (string LambdaDefinition in LambdaString)
{
RetVal.Add(new AClassNamedLambda(Settings, LambdaDefinition));
}
return RetVal;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment