Is GetTypeInfo missing in .NETCore 4.5.1?

I am trying to read an embedded resource (font file in a Windows 8.1 storage application) as a stream of bytes, but the problem is accessing the resource file. I often use

typeof(Type).GetTypeInfo.Assembly.GetMainfestResourceStream(...) 

but the GetTypeInfo() method in System.Reflection.Type.NETCore v.4.5.1 does not exist. Is lib-reference-missing? I'm a little confused ^^

+7
c # microsoft-metro
source share
1 answer

This is an extension method, adding using System.Reflection; requires the compiler to recognize it.

Thanks Hans Passant

+9
source share

All Articles