/// <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;
 }
Exemple #2
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;
 }
 /// <summary>
 /// Builds a new instance of <see cref="GpxPerson"/> as a copy of this instance, but with
 /// <see cref="Link"/> replaced by the given value.
 /// </summary>
 /// <param name="link">
 /// The new value for <see cref="Link"/>.
 /// </param>
 /// <returns>
 /// A new <see cref="GpxPerson"/> instance that's a copy of the current instance, but
 /// with its <see cref="Link"/> value set to <paramref name="link"/>.
 /// </returns>
 public GpxPerson WithLink(GpxWebLink link) => new GpxPerson(Name, Email, link);
Exemple #4
0
 /// <summary>
 /// Builds a new instance of <see cref="GpxPerson"/> as a copy of this instance, but with
 /// <see cref="Link"/> replaced by the given value.
 /// </summary>
 /// <param name="link">
 /// The new value for <see cref="Link"/>.
 /// </param>
 /// <returns>
 /// A new <see cref="GpxPerson"/> instance that's a copy of the current instance, but
 /// with its <see cref="Link"/> value set to <paramref name="link"/>.
 /// </returns>
 public GpxPerson WithLink(GpxWebLink link) => new GpxPerson(this.Name, this.Email, link);