| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- using System;
- namespace Abp.Application.Services.Dto
- {
- /// <summary>
- /// Can be used to send/receive Name/Value (or Key/Value) pairs.
- /// </summary>
- [Serializable]
- public class NameValueDto : NameValueDto<string>
- {
- /// <summary>
- /// Creates a new <see cref="NameValueDto"/>.
- /// </summary>
- public NameValueDto()
- {
- }
- /// <summary>
- /// Creates a new <see cref="NameValueDto"/>.
- /// </summary>
- public NameValueDto(string name, string value)
- : base(name, value)
- {
- }
- /// <summary>
- /// Creates a new <see cref="NameValueDto"/>.
- /// </summary>
- /// <param name="nameValue">A <see cref="NameValue"/> object to get it's name and value</param>
- public NameValueDto(NameValue nameValue)
- : this(nameValue.Name, nameValue.Value)
- {
- }
- }
- /// <summary>
- /// Can be used to send/receive Name/Value (or Key/Value) pairs.
- /// </summary>
- [Serializable]
- public class NameValueDto<T> : NameValue<T>
- {
- /// <summary>
- /// Creates a new <see cref="NameValueDto"/>.
- /// </summary>
- public NameValueDto()
- {
- }
- /// <summary>
- /// Creates a new <see cref="NameValueDto"/>.
- /// </summary>
- public NameValueDto(string name, T value)
- : base(name, value)
- {
- }
- /// <summary>
- /// Creates a new <see cref="NameValueDto"/>.
- /// </summary>
- /// <param name="nameValue">A <see cref="NameValue"/> object to get it's name and value</param>
- public NameValueDto(NameValue<T> nameValue)
- : this(nameValue.Name, nameValue.Value)
- {
- }
- }
- }
|