1 #region Copyright notice and license 2 // Protocol Buffers - Google's data interchange format 3 // Copyright 2016 Google Inc. All rights reserved. 4 // 5 // Use of this source code is governed by a BSD-style 6 // license that can be found in the LICENSE file or at 7 // https://developers.google.com/open-source/licenses/bsd 8 #endregion 9 10 namespace Google.Protobuf.TestProtos 11 { 12 /// <summary> 13 /// A message with custom diagnostics (to test that they work). 14 /// </summary> 15 public partial class ForeignMessage : ICustomDiagnosticMessage 16 { ToDiagnosticString()17 public string ToDiagnosticString() 18 { 19 return string.Format("{{ \"c\": {0}, \"@cInHex\": \"{0:x}\" }}", C); 20 } 21 } 22 } 23