Inheritance: BaseFixupRecord
コード例 #1
0
ファイル: ObjectManager.cs プロジェクト: zgramana/mono
        public virtual void RecordFixup(long objectToBeFixed, MemberInfo member, long objectRequired)
        {
            if (objectToBeFixed <= 0)
            {
                throw new ArgumentOutOfRangeException("objectToBeFixed", "The objectToBeFixed parameter is less than or equal to zero");
            }
            if (objectRequired <= 0)
            {
                throw new ArgumentOutOfRangeException("objectRequired", "The objectRequired parameter is less than or equal to zero");
            }
            if (member == null)
            {
                throw new ArgumentNullException("member");
            }
            FixupRecord record = new FixupRecord(GetObjectRecord(objectToBeFixed), member, GetObjectRecord(objectRequired));

            AddFixup(record);
        }
コード例 #2
0
		public virtual void RecordFixup (long objectToBeFixed, MemberInfo member, long objectRequired)
		{
			if (objectToBeFixed <= 0) throw new ArgumentOutOfRangeException("objectToBeFixed","The objectToBeFixed parameter is less than or equal to zero");
			if (objectRequired <= 0) throw new ArgumentOutOfRangeException("objectRequired","The objectRequired parameter is less than or equal to zero");
			if (member == null) throw new ArgumentNullException("member");
			FixupRecord record = new FixupRecord (GetObjectRecord(objectToBeFixed), member, GetObjectRecord(objectRequired));
			AddFixup (record);
		}