mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2026-01-27 01:20:39 +00:00
templates
This commit is contained in:
@@ -110,7 +110,7 @@ public class EventTemplate : MemberTemplate
|
||||
// this.ArgumentType = argumentType;
|
||||
//}
|
||||
|
||||
public static EventTemplate MakeEventTemplate(Type type, EventInfo ei, byte index = 0, string customName = null, TypeTemplate typeTemplate = null)
|
||||
public static EventTemplate MakeEventTemplate(Type type, EventInfo ei, byte index, string name, TypeTemplate typeTemplate)
|
||||
{
|
||||
|
||||
if (!ei.EventHandlerType.IsGenericType)
|
||||
@@ -173,7 +173,7 @@ public class EventTemplate : MemberTemplate
|
||||
|
||||
return new EventTemplate()
|
||||
{
|
||||
Name = customName ?? ei.Name,
|
||||
Name = name,
|
||||
ArgumentType = evtType,
|
||||
Index = index,
|
||||
Inherited = ei.DeclaringType != type,
|
||||
|
||||
Reference in New Issue
Block a user