IFormatterConverter.cs 889 B

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // System.Runtime.Serialization.IFormatterConverter.cs
  3. //
  4. // Author:
  5. // Miguel de Icaza ([email protected])
  6. //
  7. // (C) Ximian, Inc. http://www.ximian.com
  8. //
  9. //
  10. namespace System.Runtime.Serialization {
  11. public interface IFormatterConverter {
  12. object Convert (object o, Type t);
  13. object Convert (object o, TypeCode tc);
  14. bool ToBoolean (object o);
  15. byte ToByte (object o);
  16. char ToChar (object o);
  17. DateTime ToDateTime (object o);
  18. Decimal ToDecimal (object o);
  19. double ToDouble (object o);
  20. Int16 ToInt16 (object o);
  21. Int32 ToInt32 (object o);
  22. Int64 ToInt64 (object o);
  23. sbyte ToSByte (object o);
  24. float ToSingle (object o);
  25. string ToString (object o);
  26. UInt16 ToUInt16 (object o);
  27. UInt32 ToUInt32 (object o);
  28. UInt64 ToUInt64 (object o);
  29. }
  30. }