public void Work(DictionarySurrogateSelector surrogates, StreamingContext context) { UnityObjectSurrogate surrogate = new UnityObjectSurrogate(); foreach (Type current in RuntimeReflectionUtilities.GetUnityObjectTypes()) { surrogates.AddSurrogate(current, context, surrogate); } }
public void Work(DictionarySurrogateSelector surrogates, StreamingContext context) { var unityObjectSurrogate = new UnityObjectSurrogate(); foreach (Type unityObjectType in fiRuntimeReflectionUtility.GetUnityObjectTypes()) { surrogates.AddSurrogate(unityObjectType, context, unityObjectSurrogate); } }