Beispiel #1
0
 public void RegisterFile(string component, BuildFile file)
 {
     if (informations.ContainsKey(component))
     {
         file.Component = component;
         informations[component].Files.Add(file);
     }
     else
     {
         throw new UnknownComponentException(component);
     }
 }
Beispiel #2
0
 public void RegisterFile( string component, BuildFile file )
 {
     if( informations.ContainsKey( component ) ) {
         file.Component = component;
         informations[component].Files.Add( file );
     } else {
         throw new UnknownComponentException( component );
     }
 }