public virtual void Test1() { NeoDatis.Odb.Core.Lookup.ILookup lookup = new NeoDatis.Odb.Core.Lookup.LookupImpl (); lookup.Set("oid1", "Ol√° chico"); string s = (string)lookup.Get("oid1"); AssertEquals("Ol√° chico", s); }
public static NeoDatis.Odb.Core.Lookup.ILookup Get(string key) { lock (typeof(LookupFactory)) { NeoDatis.Odb.Core.Lookup.ILookup lookup = lookups[key]; if (lookup == null) { lookup = new NeoDatis.Odb.Core.Lookup.LookupImpl(); lookups.Add(key, lookup); } return(lookup); } }
public static NeoDatis.Odb.Core.Lookup.ILookup Get(string key) { lock (typeof(LookupFactory)) { NeoDatis.Odb.Core.Lookup.ILookup lookup = lookups[key]; if (lookup == null) { lookup = new NeoDatis.Odb.Core.Lookup.LookupImpl(); lookups.Add(key, lookup); } return lookup; } }