This repository has been archived by the owner on Mar 19, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for a bug reported by a user. In general, the entire reading and …
…writing of serialized type names should be replaced by the code that is in CCI2.
- Loading branch information
1 parent
86174fe
commit 7063bdd
Showing
3 changed files
with
40 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
namespace SerializedTypeName | ||
{ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Reflection; | ||
|
||
public class M : ITwoTypeArgs<int, int> | ||
{ | ||
internal static void Main() | ||
{ | ||
var asm = Assembly.GetCallingAssembly(); | ||
var types = asm.DefinedTypes; | ||
Console.WriteLine(types.First()); | ||
} | ||
|
||
IEnumerator<int> ITwoTypeArgs<int, int>.Mk() | ||
{ | ||
yield return 42; | ||
} | ||
} | ||
|
||
public interface ITwoTypeArgs<T1, T2> | ||
{ | ||
IEnumerator<int> Mk(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters