Derived types must either match the security accessibility of the base type or be less accessible.


i porting actionscript code silverlight , ran problem. in flash inherit socket , create game socket handles parsing incoming data etc...and gives me nice clean interface game development. however, keep getting error when try in silverlight:

 inheritance security rules violated type: 'omegahyperonclient.ohsocket'. derived types must either match security accessibility of base type or less accessible.  if base class has non-transparent default constructor, derived class must have default constructor, , method inheritance rules apply across 2 methods.

 

what's deal? how fix this?

can see class declaration of socket class?

 

 

sorry, discovered reason. silverlight running in transparent security mode can inherit other transparent classes. socket in safecritical mode cannot inherit in silverlight application.



Silverlight  >  Programming Silverlight with .NET – General



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........