public override bool Equals(object obj) { if (obj == this) { return(true); } if (obj == null || obj.GetType() != GetType()) { return(false); } Db4objects.Db4o.Internal.TypeHandlerAspect other = (Db4objects.Db4o.Internal.TypeHandlerAspect )obj; return(_typeHandler.Equals(other._typeHandler)); }
private void DisableAspectsBefore(Collection4 aspects, TypeHandlerAspect typeHandlerAspect ) { var disableFromVersion = aspects.IndexOf(typeHandlerAspect) + 1; var i = aspects.GetEnumerator(); while (i.MoveNext()) { var aspect = (ClassAspect) i.Current; if (aspect == typeHandlerAspect) { break; } aspect.DisableFromAspectCountVersion(disableFromVersion); } }
private bool InstallCustomTypehandler(Collection4 aspects, ITypeHandler4 customTypeHandler ) { if (customTypeHandler == null) { return false; } if (customTypeHandler is IModificationAware) { _modificationChecker = (IModificationAware) customTypeHandler; } if (Handlers4.IsStandaloneTypeHandler(customTypeHandler)) { _typeHandler = customTypeHandler; return false; } var dirty = false; var typeHandlerAspect = new TypeHandlerAspect(this, customTypeHandler ); if (!ReplaceAspectByName(aspects, typeHandlerAspect)) { aspects.Add(typeHandlerAspect); dirty = true; } DisableAspectsBefore(aspects, typeHandlerAspect); _customTypeHandlerAspect = typeHandlerAspect; return dirty; }
public _IClosure4_58(TypeHandlerAspect _enclosing, CollectIdContext context) { this._enclosing = _enclosing; this.context = context; }
public _IClosure4_110(TypeHandlerAspect _enclosing, UnmarshallingContext context) { this._enclosing = _enclosing; this.context = context; }
public _IClosure4_119(TypeHandlerAspect _enclosing, DeleteContextImpl context) { this._enclosing = _enclosing; this.context = context; }
public _IClosure4_68(TypeHandlerAspect _enclosing, IDefragmentContext context) { this._enclosing = _enclosing; this.context = context; }
public _IClosure4_58(TypeHandlerAspect _enclosing, CollectIdContext context) { this._enclosing = _enclosing; this.context = context; }
public _IClosure4_119(TypeHandlerAspect _enclosing, DeleteContextImpl context) { this._enclosing = _enclosing; this.context = context; }
public _IClosure4_110(TypeHandlerAspect _enclosing, UnmarshallingContext context) { this._enclosing = _enclosing; this.context = context; }
public _IClosure4_68(TypeHandlerAspect _enclosing, IDefragmentContext context) { this._enclosing = _enclosing; this.context = context; }