public CodeGeneratorData[] GetData() { var data1 = new CodeGeneratorData(); data1.Add("testKey", "value1"); var data2 = new CodeGeneratorData(); data2.Add("testKey", "value2"); return(new [] { data1, data2 }); }
public CodeGeneratorData[] GetData() { object o; if (!objectCache.TryGetValue("myObject", out o)) { o = new object(); objectCache.Add("myObject", o); } var data = new CodeGeneratorData(); data.Add("testKey", o.GetHashCode()); return(new [] { data }); }