コード例 #1
0
ファイル: ClassAspect.cs プロジェクト: bvangrinsven/db4o-net
		protected virtual bool CheckEnabled(IAspectVersionContext context)
		{
			if (!IsEnabledOn(context))
			{
				IncrementOffset((IReadBuffer)context);
				return false;
			}
			return true;
		}
コード例 #2
0
 protected virtual bool CheckEnabled(IAspectVersionContext context)
 {
     if (!IsEnabledOn(context))
     {
         IncrementOffset((IReadBuffer)context);
         return(false);
     }
     return(true);
 }
コード例 #3
0
 private bool CanReadFromSlot(IAspectVersionContext context)
 {
     if (!IsEnabledOn(context))
     {
         return(false);
     }
     if (Alive())
     {
         return(true);
     }
     return(_state != FieldMetadataState.NotLoaded);
 }
コード例 #4
0
ファイル: FieldMetadata.cs プロジェクト: danfma/db4o-net
        private bool CheckAlive(IAspectVersionContext context)
        {
            if (!CheckEnabled(context))
            {
                return(false);
            }
            bool alive = Alive();

            if (!alive)
            {
                IncrementOffset((IReadBuffer)context);
            }
            return(alive);
        }
コード例 #5
0
ファイル: ClassAspect.cs プロジェクト: superyfwy/db4o
		public bool IsEnabledOn(IAspectVersionContext context)
		{
			return _disabledFromAspectCountVersion > context.DeclaredAspectCount();
		}
コード例 #6
0
 public bool IsEnabledOn(IAspectVersionContext context)
 {
     return(_disabledFromAspectCountVersion > context.DeclaredAspectCount());
 }
コード例 #7
0
		private bool CanReadFromSlot(IAspectVersionContext context)
		{
			if (!IsEnabledOn(context))
			{
				return false;
			}
			if (Alive())
			{
				return true;
			}
			return _state != FieldMetadataState.NotLoaded;
		}
コード例 #8
0
		private bool CheckAlive(IAspectVersionContext context)
		{
			if (!CheckEnabled(context))
			{
				return false;
			}
			bool alive = Alive();
			if (!alive)
			{
				IncrementOffset((IReadBuffer)context);
			}
			return alive;
		}