internal static IDb4oTypeImpl GetDb4oType(IReflectClass clazz) { for (int i = 0; i < _db4oTypes.Length; i++) { if (clazz.IsInstance(_db4oTypes[i])) { return(_db4oTypes[i]); } } return(null); }
public virtual bool IsInstance(object candidate) { if (_delegate != null) { return(_delegate.IsInstance(candidate)); } if (!(candidate is GenericObject)) { return(false); } return(IsAssignableFrom(((GenericObject)candidate)._class)); }
internal static IDb4oTypeImpl GetDb4oType(IReflectClass clazz) { for (int i = 0; i < _db4oTypes.Length; i++) { if (clazz.IsInstance(_db4oTypes[i])) { return _db4oTypes[i]; } } return null; }