Browse Source

Fixed generic method creation

pull/44/head
Anairkoen Schno 4 years ago
parent
commit
c71f825ec3
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      IPA.Loader/Config/Stores/GeneratedStoreImpl.cs

+ 2
- 2
IPA.Loader/Config/Stores/GeneratedStoreImpl.cs View File

@ -1604,8 +1604,8 @@ namespace IPA.Config.Stores
// for now, we assume that its a generated type implementing IGeneratedStore // for now, we assume that its a generated type implementing IGeneratedStore
var IGeneratedStore_Serialize = typeof(IGeneratedStore).GetMethod(nameof(IGeneratedStore.Serialize)); var IGeneratedStore_Serialize = typeof(IGeneratedStore).GetMethod(nameof(IGeneratedStore.Serialize));
var IGeneratedStoreT_CopyFrom = typeof(IGeneratedStore<>).GetMethod(nameof(IGeneratedStore<object>.CopyFrom))
.MakeGenericMethod(member.Type);
var IGeneratedStoreT_CopyFrom = typeof(IGeneratedStore<>).MakeGenericType(member.Type)
.GetMethod(nameof(IGeneratedStore<object>.CopyFrom));
if (!member.IsVirtual) if (!member.IsVirtual)
{ {


Loading…
Cancel
Save