Bamboo.Prevalence.Serialization.AutoVersionMigrationSurrogate.ISurrogateSelector C# (CSharp) Method

ISurrogateSelector() private method

private ISurrogateSelector ( System type, System context, System &selector ) : System.Runtime.Serialization.ISerializationSurrogate
type System
context System
selector System
return System.Runtime.Serialization.ISerializationSurrogate
		System.Runtime.Serialization.ISerializationSurrogate ISurrogateSelector.GetSurrogate(System.Type type, System.Runtime.Serialization.StreamingContext context, out System.Runtime.Serialization.ISurrogateSelector selector)
		{
			/* FIX: Rutger M. Dijkstra ([email protected])
			* typeof(foo[]).Assembly == typeof(foo).Assembly
			* Obviously nonsense, but that's how it is.
			*/
			if (!type.IsArray && type.Assembly == _assemblyToMigrate)
			{
				selector = this;
				return this;
			}
			selector = null;
			return null;
		}

Same methods

AutoVersionMigrationSurrogate::ISurrogateSelector ( ) : System.Runtime.Serialization.ISurrogateSelector
AutoVersionMigrationSurrogate::ISurrogateSelector ( System selector ) : void