Belot.Hand.Add C# (CSharp) 메소드

Add() 개인적인 메소드

private Add ( Card value ) : int
value Card
리턴 int
        internal override int Add( Card value )
        {
            if( InnerList.Count >= 4 )

                throw new InvalidOperationException("A hand can contain maximum of 4 cards");

            int ret =  InnerList.Add( value );
            RaiseChanged();
            return ret;
        }