static VersionControlConfiguration GetConfiguration()
 {
     if (configuration == null)
     {
         if (File.Exists(ConfigFile))
         {
             try {
                 XmlDataSerializer ser = new XmlDataSerializer(dataContext);
                 using (var reader = File.OpenText(ConfigFile))
                     configuration = (VersionControlConfiguration)ser.Deserialize(reader, typeof(VersionControlConfiguration));
             } catch {
                 ((FilePath)ConfigFile).Delete();
             }
         }
         if (configuration == null)
         {
             configuration = new VersionControlConfiguration();
         }
     }
     return(configuration);
 }
 static VersionControlConfiguration GetConfiguration()
 {
     if (configuration == null)
     {
         if (File.Exists(ConfigFile))
         {
             XmlDataSerializer ser    = new XmlDataSerializer(dataContext);
             XmlTextReader     reader = new XmlTextReader(new StreamReader(ConfigFile));
             try {
                 configuration = (VersionControlConfiguration)ser.Deserialize(reader, typeof(VersionControlConfiguration));
             } finally {
                 reader.Close();
             }
         }
         if (configuration == null)
         {
             configuration = new VersionControlConfiguration();
         }
     }
     return(configuration);
 }
 public static void ResetConfiguration()
 {
     configuration = null;
 }
		public static void ResetConfiguration ()
		{
			configuration = null;
		}
		static VersionControlConfiguration GetConfiguration ()
		{
			if (configuration == null) {
				if (File.Exists (ConfigFile)) {
					try {
						XmlDataSerializer ser = new XmlDataSerializer (dataContext);
						using (var reader = File.OpenText (ConfigFile))
							configuration = (VersionControlConfiguration) ser.Deserialize (reader, typeof (VersionControlConfiguration));
					} catch {
						((FilePath) ConfigFile).Delete ();
					}
				}
				if (configuration == null)
					configuration = new VersionControlConfiguration ();
			}
			return configuration;
		}
		static VersionControlConfiguration GetConfiguration ()
		{
			if (configuration == null) {
				if (File.Exists (ConfigFile)) {
					XmlDataSerializer ser = new XmlDataSerializer (dataContext);
					XmlTextReader reader = new XmlTextReader (new StreamReader (ConfigFile));
					try {
						configuration = (VersionControlConfiguration) ser.Deserialize (reader, typeof (VersionControlConfiguration));
					} finally {
						reader.Close ();
					}
				}
				if (configuration == null)
					configuration = new VersionControlConfiguration ();
			}
			return configuration;
		}