/// <summary>
 /// Initializes a new instance of the <see cref="LicenseBuilder"/> class.
 /// </summary>
 public LicenseBuilder()
 {
     license = new License();
 }
Esempio n. 2
0
 /// <summary>
 /// Loads a <see cref="License"/> from a string that contains Base64.
 /// </summary>
 /// <param name="base64String">A <see cref="string"/> that contains Base64.</param>
 /// <returns>A <see cref="License"/> populated from the <see cref="string"/> that contains Base64.</returns>
 public static License LoadFromBase64(string base64String)
 {
     return(License.Load(Encoding.UTF8.GetString(Convert.FromBase64String(base64String))));
 }