Files
ProxyGenerator/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.OperatorTestProxy.g.cs
T
Stef Heyenrath 106385a466 Add support for implicit and explicit operators (#51)
* .

* xxxxxxxx

* rev

* ....

* .

* ok

* 2

* .

* ,
2023-01-09 21:06:30 +01: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 disable