IFormatProvider.cs 616 B

123456789101112131415161718192021
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT license.
  3. // See the LICENSE file in the project root for more information.
  4. /*============================================================
  5. **
  6. **
  7. **
  8. ** Purpose: Notes a class which knows how to return formatting information
  9. **
  10. **
  11. ============================================================*/
  12. namespace System
  13. {
  14. public interface IFormatProvider
  15. {
  16. // Interface does not need to be marked with the serializable attribute
  17. object? GetFormat(Type? formatType);
  18. }
  19. }