コード例 #1
0
                public ThrowsAttribute(Type exceptionType, string diagnosis)
                {
                    if (string.IsNullOrEmpty(diagnosis))
                    {
                        throw Exception.ArgumentNullOrEmpty(nameof(diagnosis));
                    }

                    ExceptionType = exceptionType ?? throw Exception.ArgumentNull(nameof(exceptionType));
                    Diagnosis     = diagnosis;
                }