예제 #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);
     }
 }
예제 #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 );
     }
 }