private bool CompareTypes(Type type1, String type2) { Type type = RemotingServices.InternalGetTypeFromQualifiedTypeName(type2); return type1 == type; }