예제 #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);
        }
예제 #2
0
 public static IGraphFormatter GetDefaultSerializationFormatter(Type type)
 {
     UpdateSerializationSystems();
     return(_formatterSelector.GetValue(type));
 }
예제 #3
0
 public static ISerializationSurrogate GetDefaultSerializationSurrogate(Type type)
 {
     UpdateSerializationSystems();
     return(_surrogateSelector.GetValue(type));
 }