示例#1
0
        /// <summary>
        /// Initializes a new instance of the AvatarGeneratorAbstract class.
        /// </summary>
        /// <param name="initials">User's initials.</param>
        /// <param name="options">Additional avatar options.</param>
        protected AvatarGeneratorAbstract(char[] initials, AvatarOptions options)
        {
            if (initials == null)
            {
                throw new ArgumentNullException("initials");
            }

            this.Initials = initials;
            this.Options  = options;
        }
 /// <summary>
 /// Initializes a new instance of the LetterAvatarGenerator class.
 /// </summary>
 /// <param name="initials">User's initials.</param>
 /// <param name="options">Additional avatar options.</param>
 public LetterAvatarGenerator(char[] initials, AvatarOptions options)
     : base(initials, options)
 {
     this.text  = this.GetText();
     this.style = this.GetStyle();
 }