This project uses Source Generation to generate an interface and a Proxy class for classes. This makes it possible to wrap external classes which do not have an interface, in a Proxy class which makes it easier to Mock and use Dependency Injection.
MIT License
38
stars
5
forks
source link
warning CS0109: The member '***._Instance' does not hide an accessible member. The new keyword is not required. #71
//----------------------------------------------------------------------------------------
// <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.PnP
{
public partial interface IClientContext
{
new global::Microsoft.SharePoint.Client.ClientContext _Instance { get; } // ⭐
global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IWeb Web { get; }
global::Microsoft.SharePoint.Client.Site Site { get; }
global::Microsoft.SharePoint.Client.RequestResources RequestResources { get; }
global::System.Version ServerVersion { get; }
global::Microsoft.SharePoint.Client.FormDigestInfo GetFormDigestDirect();
void ExecuteQuery();
global::System.Threading.Tasks.Task ExecuteQueryAsync();
}
}
#nullable restore