Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Type.IsByRefLike throws NotSupportedException #11086

@akoeplinger

Description

@akoeplinger

Steps to Reproduce

int test = 10;
Console.WriteLine (test.GetType ().IsByRefLike);

Current Behavior

   System.NotSupportedException : Derived classes must provide an implementation.
  at System.Type.get_IsByRefLike () [0x00000] in /Users/alexander/dev/mono/mcs/class/corlib/ReferenceSources/Type.cs:42

Expected Behavior

No exception and false for types like int.

On which platforms did you notice this

[ X ] macOS
[ X ] Linux
[ X ] Windows

Version Used: master

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions