Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Program
- {
- static void Main()
- {
- Console.WriteLine(typeof(Foo).IsSerializable); // shows True
- Console.WriteLine(typeof(Bar).IsSerializable); // shows False
- }
- }
- [Serializable]
- class Foo {}
- class Bar : Foo {}
Add Comment
Please, Sign In to add comment