Ejemplo n.º 1
0
        public static void RemoveExisting(this GptContext self, string name)
        {
            var chosen = self.Partitions.FirstOrDefault(x => string.Equals(x.Name, name, StringComparison.OrdinalIgnoreCase));

            if (chosen != null)
            {
                Log.Verbose("Deleting {Partition}", chosen);
                self.Delete(chosen);
            }
        }
Ejemplo n.º 2
0
 public static Partition Get(this GptContext self, string name)
 {
     return(self.Partitions.FirstOrDefault(x => x.Name == name));
 }