Files
ProxyGenerator/tests/ProxyInterfaceSourceGeneratorTests/Source/Foo.cs
T
Adam Hathcock 5f92c81965 Fork changes
2024-05-21 16:30:10 +01:00

35 lines
727 B
C#

using System.Diagnostics.CodeAnalysis;
namespace ProxyInterfaceSourceGeneratorTests.Source;
public class Foo
{
//public Bar DoSomethingAndGetABar()
//{
// return new Bar();
//}
//public Bar[] DoSomethingAndGetAnArrayOfBars()
//{
// return new[] { new Bar() };
//}
//public Foo DoSomethingAndGetAFoo()
//{
// return new Foo();
//}
[SuppressMessage("ReSharper", "NullableWarningSuppressionIsUsed")]
public Foo[] Foos { get; set; } = null!;
public Foo[] DoSomethingAndGetAnArrayOfFoos()
{
return new[] { new Foo() };
}
//public List<Foo> DoSomethingAndGetAListOfFoos()
//{
// return new[] { new Foo() }.ToList();
//}
}