コード例 #1
0
ファイル: Movies.cs プロジェクト: maraf/MediaLibrary
        public string this[string field]
        {
            get
            {
                switch (field)
                {
                case "ID": return(ID.ToString());

                case "Name": return(Name);

                case "OriginalName": return(OriginalName);

                case "Storage": return(Storage);

                case "Year": return(Year.ToString());

                case "Country": return(Country);

                //case "Genre": return Genre;
                case "Category": return(Category);

                case "Added": return(Added.ToString(Thread.CurrentThread.CurrentCulture.DateTimeFormat));

                case "Language": return(Language);

                case "Description": return(Description);

                case "Actors": return(Actors.ConcatWith(','));

                case "OnlineIdentifier": return(OnlineIdentifier);

                case "Starred": return(Starred.ToString());

                default: return(null);
                }
            }
        }