Esempio n. 1
0
        static public GameException ToGameException(this WCFGameException o)
        {
            GameException result = new GameException();

            result.Game    = o.GameId == Guid.Empty ? new Guid?() : o.GameId;
            result.Login   = o.Login;
            result.Message = o.Message;

            return(result);
        }
        public static GameException ToGameException(this WCFGameException o)
        {
            GameException result = new GameException
            {
                Game       = string.IsNullOrWhiteSpace(o.Game) ? new Guid?() : Guid.Parse(o.Game),
                Login      = o.Login,
                Message    = o.Message,
                stackTrace = o.stackTrace
            };

            return(result);
        }