Beispiel #1
0
        public IGraphFormatter GetFormatter(Type type)
        {
            IGraphFormatter result = m_formatters.GetValue(type);

            if (result != null)
            {
                return(result);
            }

            return(m_next != null?m_next.GetFormatter(type) : null);
        }
Beispiel #2
0
 public static IGraphFormatter GetDefaultSerializationFormatter(Type type)
 {
     UpdateSerializationSystems();
     return(_formatterSelector.GetValue(type));
 }
Beispiel #3
0
 public static ISerializationSurrogate GetDefaultSerializationSurrogate(Type type)
 {
     UpdateSerializationSystems();
     return(_surrogateSelector.GetValue(type));
 }