Change the behavior of FormatterAssemblyStyle

Oct 13, 2011 at 2:36 PM

Hi, there are a way to change the format for the  attribute "$type" generated  when added the TypeNameHandling to the settings?

I need only the class name. not all the assembly, version....


Oct 13, 2011 at 2:48 PM

Only to help to understand my problem.

I have a structure wich has collections of elements 

class Main{
  List<Base> collection;

abstract class Base{

class concrete: Base{

class concrete2: Base{

and I use a Binder to know the corresponding class, This Binder has a funcion 


        public override Type BindToType(string assemblyName, string typeName) 
            return _types[typeName];
And _types is a Dictionary with the corresponding types