コード例 #1
0
ファイル: TestLookup.cs プロジェクト: ekicyou/pasta
        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);
		}
コード例 #2
0
        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);
        }
コード例 #3
0
 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);
     }
 }
コード例 #4
0
		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;
			}
		}