19 lines
465 B
C#
19 lines
465 B
C#
using System;
|
|
using System.Reflection;
|
|
using Swashbuckle.Examples;
|
|
|
|
namespace Kreta.Ellenorzo.Documentation
|
|
{
|
|
public class Dummy<T> : IExamplesProvider where T : new()
|
|
{
|
|
public T Controller { get; set; }
|
|
|
|
public object GetExamples()
|
|
{
|
|
var x = new T();
|
|
//MethodInfo toInvoke = ((object) x).GetMethod("ShowMessage");
|
|
//toInvoke.Invoke(testInstance, null);
|
|
return x;
|
|
}
|
|
}
|
|
}
|