Ejemplo n.º 1
0
        public bool IsFriend(Gamer gamer)
        {
            if (gamer == null)
            {
                throw new ArgumentNullException();
            }
            if (gamer.IsDisposed)
            {
                throw new ObjectDisposedException(gamer.ToString());
            }
            bool flag = false;

            foreach (Gamer gamer1 in this.friendCollection)
            {
                if (gamer1.Gamertag == gamer.Gamertag)
                {
                    flag = true;
                }
            }
            return(flag);
        }
Ejemplo n.º 2
0
        public bool IsFriend(Gamer gamer)
        {
            if (gamer == null)
            {
                throw new ArgumentNullException();
            }

            if (gamer.IsDisposed)
            {
                throw new ObjectDisposedException(gamer.ToString());
            }

            bool found = false;

            foreach (FriendGamer f in friendCollection)
            {
                if (f.Gamertag == gamer.Gamertag)
                {
                    found = true;
                }
            }
            return(found);
        }
Ejemplo n.º 3
0
		public bool IsFriend (Gamer gamer)
		{
			if ( gamer == null ) 
				throw new ArgumentNullException();
			
			if ( gamer.IsDisposed )
				throw new ObjectDisposedException(gamer.ToString());	
			
			bool found = false;
			foreach(FriendGamer f in friendCollection)
			{
				if ( f.Gamertag == gamer.Gamertag )
				{
					found = true;
				}
			}
			return found;
						
		}
Ejemplo n.º 4
0
 public bool IsFriend(Gamer gamer)
 {
   if (gamer == null)
     throw new ArgumentNullException();
   if (gamer.IsDisposed)
     throw new ObjectDisposedException(gamer.ToString());
   bool flag = false;
   foreach (Gamer gamer1 in this.friendCollection)
   {
     if (gamer1.Gamertag == gamer.Gamertag)
       flag = true;
   }
   return flag;
 }