Files
ProxyGenerator/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.OperatorTestProxy.g.cs
T
David 39d85588e6 Use fully qualified names to reduce namespace clashes. (#68)
* Use fully qualified names to reduce namespace clashes.

* Small code style fixes.

* Make properties in ProxyData immutable.

* Remove clutter by joining TrimEnd() to previous line.

* Introduce Extension method to retrieve ITypeSymbol FullyQualifiedDisplayString

* Fixed some code issues.

* Fixed method call in BaseGenerator

* Refactor metadata name
2024-04-28 10:25:50 +02:00

53 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 : global::ProxyInterfaceSourceGeneratorTests.Source.IOperatorTest
{
public global::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(global::ProxyInterfaceSourceGeneratorTests.Source.OperatorTest instance)
{
_Instance = instance;
}
}
}
#nullable restore