示例#1
0
 /// <summary>
 /// Builds a new instance of <see cref="GpxPerson"/> as a copy of this instance, but with
 /// <see cref="Email"/> replaced by the given value.
 /// </summary>
 /// <param name="email">
 /// The new value for <see cref="Email"/>.
 /// </param>
 /// <returns>
 /// A new <see cref="GpxPerson"/> instance that's a copy of the current instance, but
 /// with its <see cref="Email"/> value set to <paramref name="email"/>.
 /// </returns>
 public GpxPerson WithEmail(GpxEmail email) => new GpxPerson(Name, email, Link);
示例#2
0
 /// <summary>
 /// Builds a new instance of <see cref="GpxPerson"/> as a copy of this instance, but with
 /// <see cref="Email"/> replaced by the given value.
 /// </summary>
 /// <param name="email">
 /// The new value for <see cref="Email"/>.
 /// </param>
 /// <returns>
 /// A new <see cref="GpxPerson"/> instance that's a copy of the current instance, but
 /// with its <see cref="Email"/> value set to <paramref name="email"/>.
 /// </returns>
 public GpxPerson WithEmail(GpxEmail email) => new GpxPerson(this.Name, email, this.Link);
示例#3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GpxPerson"/> class.
 /// </summary>
 /// <param name="name">
 /// The value for <see cref="Name"/>.
 /// </param>
 /// <param name="email">
 /// The value for <see cref="Email"/>.
 /// </param>
 /// <param name="link">
 /// The value for <see cref="Link"/>.
 /// </param>
 public GpxPerson(string name, GpxEmail email, GpxWebLink link)
 {
     Name  = name;
     Email = email;
     Link  = link;
 }
示例#4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GpxPerson"/> class.
 /// </summary>
 /// <param name="name">
 /// The value for <see cref="Name"/>.
 /// </param>
 /// <param name="email">
 /// The value for <see cref="Email"/>.
 /// </param>
 /// <param name="link">
 /// The value for <see cref="Link"/>.
 /// </param>
 public GpxPerson(string name, GpxEmail email, GpxWebLink link)
 {
     this.Name  = name;
     this.Email = email;
     this.Link  = link;
 }