namespace System.Runtime.Serialization.Formatters.Binary {
[ComVisible (true)]
- public sealed class BinaryFormatter : IRemotingFormatter, IFormatter
+ public sealed class BinaryFormatter :
+#if !FULL_AOT_RUNTIME
+ IRemotingFormatter,
+#endif
+ IFormatter
{
private FormatterAssemblyStyle assembly_format = FormatterAssemblyStyle.Simple;
private SerializationBinder binder;
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
+#if !FULL_AOT_RUNTIME
using System;
using System.IO;
using System.Collections;
}
}
+#endif
TypeMetadata CreateMemberTypeMetadata (Type type)
{
+#if !FULL_AOT_RUNTIME
if (!BinaryCommon.UseReflectionSerialization) {
Type metaType = CodeGenerator.GenerateMetadataType (type, _context);
return (TypeMetadata) Activator.CreateInstance (metaType);
}
else
+#endif
return new MemberTypeMetadata (type, _context);
}