Exemple #1
0
        public static RepositoryAddress Create(HardWiredSources hardWiredSource, string name, bool readOnly)
        {
            switch (hardWiredSource)
            {
            case HardWiredSources.UsbKey:
                return(new UsbKeyRepositorySource(name, HardWiredSources.UsbKey.ToString(), readOnly));

            default:
                throw new ArgumentException("RepositoryAddress does not recognize this kind of source (" + HardWiredSources.UsbKey.ToString() + ")");
            }
        }
 public static RepositoryAddress Create(HardWiredSources hardWiredSource, string name, bool readOnly)
 {
     switch (hardWiredSource)
     {
         case HardWiredSources.UsbKey:
             return new UsbKeyRepositorySource(name, HardWiredSources.UsbKey.ToString(), readOnly);
         default:
             throw new ArgumentException("RepositoryAddress does not recognize this kind of source (" + HardWiredSources.UsbKey.ToString() + ")");
     }
 }