Ejemplo n.º 1
0
        private Db4objects.Db4o.Reflect.Generic.GenericClass GenericClass(IReflectClass clazz
                                                                          )
        {
            Db4objects.Db4o.Reflect.Generic.GenericClass ret;
            string name = clazz.GetName();

            if (name.Equals(ReflectPlatform.FullyQualifiedName(typeof(GenericArray))))
            {
                // special case, comparing name because can't compare class == class directly with ReflectClass
                ret = new GenericArrayClass(this, clazz, name, null);
            }
            else
            {
                ret = new Db4objects.Db4o.Reflect.Generic.GenericClass(this, clazz, name, null);
            }
            return(ret);
        }
Ejemplo n.º 2
0
 private GenericClass GenericClass(IReflectClass clazz
     )
 {
     GenericClass ret;
     var name = clazz.GetName();
     if (name.Equals(ReflectPlatform.FullyQualifiedName(typeof (GenericArray))))
     {
         // special case, comparing name because can't compare class == class directly with ReflectClass
         ret = new GenericArrayClass(this, clazz, name, null);
     }
     else
     {
         ret = new GenericClass(this, clazz, name, null);
     }
     return ret;
 }