title: how can make this struct smarter
body: <p>I have this struct which is part of of a class.</p>
  
  <pre><code>  public struct PartStruct
      {
          public string name;
          public string filename;
          public string layer2D;
          public string layer3D;
          public TypeOfPart type;
          public int hight;
          public int depth;
          public int length;
          public int flooroffset;
          public int width;
          public int cellingoffset;
      }
  </code></pre>
  
  <p>each instance of this struct will represent a part with different properties, I'm using just one struct type because I have this function:</p>
  
  <pre><code>public void insert(Partstruct part){//large code to insert the part}
  </code></pre>
  
  <p>example:</p>
  
  <pre><code>Partstruct monitor = new Partstruct();
  monitor.name = "mon1";
  monitor.file = "default monitor file name.jpg";//this is a const for each new monitor
  monitor.TypeofPart = monitor;
  monitor.layer2d = "default monitor layer";//this will be the same for each new monitor.
  </code></pre>
  
  <p>etc..</p>
  
  <pre><code>Partstruct keyboard= new Partstruct();
  keyboard.name = "keyboard1";
  keyboard.file = "default keyboard file name.jpg";//this is a const for each new keyboard
  keyboard.TypeofPart = keyboard;
  keyboard.layer2d = "default keyboard 2d layer";//this will be the same for each new keyboard.
  keyboard.layer3d = "default keyboard 3d layer"//this will be the same for each new keyboard.
  </code></pre>
  
  <p>etc..</p>
  
  <pre><code>insert(monitor);
  insert(keyboard);
  </code></pre>
  
  <p>can I do this in a smarter way? I'm using .net 3.5</p>