PropertyEntry.cs 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /*
  2. *
  3. * Licensed to the Apache Software Foundation (ASF) under one
  4. * or more contributor license agreements. See the NOTICE file
  5. * distributed with this work for additional information
  6. * regarding copyright ownership. The ASF licenses this file
  7. * to you under the Apache License, Version 2.0 (the
  8. * "License"); you may not use this file except in compliance
  9. * with the License. You may obtain a copy of the License at
  10. *
  11. * http://www.apache.org/licenses/LICENSE-2.0
  12. *
  13. * Unless required by applicable law or agreed to in writing,
  14. * software distributed under the License is distributed on an
  15. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  16. * KIND, either express or implied. See the License for the
  17. * specific language governing permissions and limitations
  18. * under the License.
  19. *
  20. */
  21. namespace log4net.Util
  22. {
  23. /// <summary>
  24. /// A class to hold the key and data for a property set in the config file
  25. /// </summary>
  26. /// <remarks>
  27. /// <para>
  28. /// A class to hold the key and data for a property set in the config file
  29. /// </para>
  30. /// </remarks>
  31. public class PropertyEntry
  32. {
  33. private string m_key = null;
  34. private object m_value = null;
  35. /// <summary>
  36. /// Property Key
  37. /// </summary>
  38. /// <value>
  39. /// Property Key
  40. /// </value>
  41. /// <remarks>
  42. /// <para>
  43. /// Property Key.
  44. /// </para>
  45. /// </remarks>
  46. public string Key
  47. {
  48. get { return m_key; }
  49. set { m_key = value; }
  50. }
  51. /// <summary>
  52. /// Property Value
  53. /// </summary>
  54. /// <value>
  55. /// Property Value
  56. /// </value>
  57. /// <remarks>
  58. /// <para>
  59. /// Property Value.
  60. /// </para>
  61. /// </remarks>
  62. public object Value
  63. {
  64. get { return m_value; }
  65. set { m_value = value; }
  66. }
  67. /// <summary>
  68. /// Override <c>Object.ToString</c> to return sensible debug info
  69. /// </summary>
  70. /// <returns>string info about this object</returns>
  71. public override string ToString()
  72. {
  73. return "PropertyEntry(Key=" + m_key + ", Value=" + m_value + ")";
  74. }
  75. }
  76. }