Files
ProxyGenerator/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.OperatorTestProxy.g.cs
T
Stef Heyenrath 764d9d4f58 Change "nullable disable" to "nullable restore" (#65)
* Remove "#nullable disable" and the end of generated cs file

* restore

* .
2023-10-10 19:38:40 +02:00

61 lines
1.6 KiB
C#

//----------------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by https://github.com/StefH/ProxyInterfaceSourceGenerator.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//----------------------------------------------------------------------------------------
#nullable enable
using System;
namespace ProxyInterfaceSourceGeneratorTests.Source
{
public partial class OperatorTestProxy : IOperatorTest
{
public ProxyInterfaceSourceGeneratorTests.Source.OperatorTest _Instance { get; }
public string Name { get => _Instance.Name; set => _Instance.Name = value; }
public int? Id { get => _Instance.Id; set => _Instance.Id = value; }
public static implicit operator OperatorTestProxy(string name)
{
return new OperatorTestProxy((OperatorTest) name);
}
public static implicit operator OperatorTestProxy(int? id)
{
return new OperatorTestProxy((OperatorTest) id);
}
public static explicit operator string(OperatorTestProxy test)
{
return (string) test._Instance;
}
public static explicit operator int?(OperatorTestProxy test)
{
return (int?) test._Instance;
}
public OperatorTestProxy(ProxyInterfaceSourceGeneratorTests.Source.OperatorTest instance)
{
_Instance = instance;
}
}
}
#nullable restore