[Mono-dev] Re flection not working with System.Runtime.Remoting.Channels.CoreChannel

Robert Jordan robertj at gmx.net
Sun Oct 5 07:21:04 EDT 2008


Mathflair wrote:
> I am having a problem with the following line of code:
> 
> Type coreChannelType =
> binaryServerFormatterSinkProvider.GetType().Assembly.GetType("System.Runtime.Remoting.Channels.CoreChannel");
> 
> This returns a null reference pointer.  I can't figure out why this would
> happen.  My only guess is that the reflection libraries are not properly
> grabbing the class since it is an internal class.

Mono does not provide this class. Change your code to not depend
on MS.NET runtime internals.

Robert



More information about the Mono-devel-list mailing list