Пример #1
0
        public static ApiExceptionInfoBuildOutput FromModel(ExceptionInfo model)
        {
            if (model == null) return null;

            return new ApiExceptionInfoBuildOutput
            {
                Type = ApiNames.FromUid(model.Type),
                Description = model.Description,
            };
        }
Пример #2
0
        public static ApiExceptionInfoBuildOutput FromModel(ExceptionInfo model, Dictionary<string, ApiReferenceBuildOutput> references, string[] supportedLanguages)
        {
            if (model == null) return null;

            return new ApiExceptionInfoBuildOutput
            {
                Type = ApiBuildOutputUtility.GetApiNames(model.Type, references, supportedLanguages),
                Description = model.Description,
                _needExpand = false,
            };
        }