/// <summary> /// Add a new processor to the serializer. Multiple processors can run at the same time in the /// same order they were added in. /// </summary> /// <param name="processor">The processor to add.</param> public void AddProcessor(fsObjectProcessor processor) { _processors.Add(processor); // We need to reset our cached processor set, as it could be invalid with the new // processor. Ideally, _cachedProcessors should be empty (as the user should fully setup // the serializer before actually using it), but there is no guarantee. _cachedProcessors = new Dictionary <Type, List <fsObjectProcessor> >(); }
/// <summary> /// Register the given processor for usage in the serializer. /// </summary> public static void AddProcessor(fsObjectProcessor processor) { _serializer.AddProcessor(processor); }