File: System\ComponentModel\Composition\ImportCardinalityMismatchExceptionDebuggerProxy.cs
Web Access
Project: src\src\runtime\src\libraries\System.ComponentModel.Composition\src\System.ComponentModel.Composition.csproj (System.ComponentModel.Composition)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using Microsoft.Internal;

namespace System.ComponentModel.Composition
{
    internal sealed class ImportCardinalityMismatchExceptionDebuggerProxy
    {
        private readonly ImportCardinalityMismatchException _exception;

        public ImportCardinalityMismatchExceptionDebuggerProxy(ImportCardinalityMismatchException exception)
        {
            Requires.NotNull(exception, nameof(exception));

            _exception = exception;
        }

        public Exception? InnerException
        {
            get { return _exception.InnerException; }
        }

        public string Message
        {
            get { return _exception.Message; }
        }
    }
}