| File: test\Generators\Microsoft.Gen.Logging\TestClasses\ConstraintsTestExtensions.cs | Web Access |
| Project: src\test\Generators\Microsoft.Gen.Logging\Generated\Microsoft.Gen.Logging.Generated.Tests.csproj (Microsoft.Gen.Logging.Generated.Tests) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using Microsoft.Extensions.Logging; #pragma warning disable SA1402 // File may only contain a single type #pragma warning disable S1186 // Methods should not be empty namespace TestClasses { internal static partial class ConstraintsTestExtensions<T> where T : class { [LoggerMessage(0, LogLevel.Debug, "M0{p0}")] public static partial void M0(ILogger logger, int p0); public static void Foo(T _) { } } internal static partial class ConstraintsTestExtensions1<T> where T : struct { [LoggerMessage(0, LogLevel.Debug, "M0{p0}")] public static partial void M0(ILogger logger, int p0); public static void Foo(T _) { } } internal static partial class ConstraintsTestExtensions2<T> where T : unmanaged { [LoggerMessage(0, LogLevel.Debug, "M0{p0}")] public static partial void M0(ILogger logger, int p0); public static void Foo(T _) { } } internal static partial class ConstraintsTestExtensions3<T> where T : new() { [LoggerMessage(0, LogLevel.Debug, "M0{p0}")] public static partial void M0(ILogger logger, int p0); public static void Foo(T _) { } } internal static partial class ConstraintsTestExtensions4<T> where T : Attribute { [LoggerMessage(0, LogLevel.Debug, "M0{p0}")] public static partial void M0(ILogger logger, int p0); public static void Foo(T _) { } } internal static partial class ConstraintsTestExtensions5<T> where T : notnull { [LoggerMessage(0, LogLevel.Debug, "M0{p0}")] public static partial void M0(ILogger logger, int p0); public static void Foo(T _) { } } internal static partial class ConstraintsTestExtensionsMultiple<T> where T : class, new() { [LoggerMessage(0, LogLevel.Debug, "M0{p0}")] public static partial void M0(ILogger logger, int p0); public static void Foo(T _) { } } }