Amss.Boilerplate.Common.Exceptions.ObjectNotFoundException.ToMessage C# (CSharp) Method

ToMessage() private static method

private static ToMessage ( long id, Type type ) : string
id long
type System.Type
return string
        private static string ToMessage(long id, Type type)
        {
            Contract.Assert(type != null);
            var message = string.Format(
                    CultureInfo.InvariantCulture,
                    "Can not load object {0} by id {1}",
                    type.Name,
                    id);
            return message;
        }