Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
M

Member 10441939

@Member 10441939
About
Posts
2
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Editing values in List?
    M Member 10441939

    Sorry, here is the line that add a Track to the list

    for (int countForTrack = countTracks; countForTrack > 0; countForTrack--)
    {
    currentTrack = tracks[countTracks] as IITFileOrCDTrack;
    countTracks--;
    TracksOniTunes.Add(new Track(currentTrack.Name, currentTrack.Artist, currentTrack.Album, currentTrack.SampleRate, currentTrack.BitRate));
    }

    C# help question

  • Editing values in List?
    M Member 10441939

    Hy @ everyone, i have a Little Problem:

    class Track
    {
    string Name;
    string Artist;
    string Album;
    int SampleRate;
    int BitRate;

    public Track(string name, string artist, string album, int sampleRate, int bitRate)
    {
        Name = name;
        Artist = artist;
        Album = album;
        SampleRate = sampleRate;
        BitRate = bitRate;
    }
    

    }

    Now i want to editing some values foreach Track:

    List TracksOniTunes = new List();

    foreach (Track item in TracksOniTunes)
    {
    // SampleRate = 0

    }

    Later, i have a Switch and I need depending on different values ​​to compare from the List

    switch (criteria)
    {
    case "":
    break;
    case "Qualität":
    break;
    case "Album":
    break;
    case "Compilation":
    break;
    }

    My Problem is that i can't editing some items? I can not access the objects. Is there an easy way? Thanks for help.

    C# help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups