示例#1
0
文件: Artist.cs 项目: sethura/vocadb
        public virtual ArtistName CreateName(string val, ContentLanguageSelection language)
        {
            ParamIs.NotNullOrEmpty(() => val);

            var name = new ArtistName(this, new LocalizedString(val, language));

            Names.Add(name);

            return(name);
        }
示例#2
0
        public virtual bool Equals(ArtistName another)
        {
            if (another == null)
                return false;

            if (ReferenceEquals(this, another))
                return true;

            return this.Id == another.Id;
        }
示例#3
0
		public virtual bool Equals(ArtistName another) {

			if (another == null)
				return false;

			if (ReferenceEquals(this, another))
				return true;

			return this.Id == another.Id;

		}
示例#4
0
        public virtual bool Equals(ArtistName another)
        {
            if (another == null)
            {
                return(false);
            }

            if (ReferenceEquals(this, another))
            {
                return(true);
            }

            return(this.Id == another.Id);
        }