Aucune description
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

Message.cs 756B

1234567891011121314151617181920212223
  1. /*---------------------------------------------------------------------------------------------
  2. * Copyright (c) Microsoft Corporation. All rights reserved.
  3. * Licensed under the MIT License. See License.txt in the project root for license information.
  4. *--------------------------------------------------------------------------------------------*/
  5. using System.Globalization;
  6. using System.Net;
  7. namespace Microsoft.Unity.VisualStudio.Editor.Messaging
  8. {
  9. internal class Message
  10. {
  11. public MessageType Type { get; set; }
  12. public string Value { get; set; }
  13. public IPEndPoint Origin { get; set; }
  14. public override string ToString()
  15. {
  16. return string.Format(CultureInfo.InvariantCulture, "<Message type:{0} value:{1}>", Type, Value);
  17. }
  18. }
  19. }