public void SetPreferences(BuildPreferencesType type, BuildPreferences value) { switch (type) { case BuildPreferencesType.Internal: internalPreferences = value; break; case BuildPreferencesType.Test: testPreferences = value; break; case BuildPreferencesType.Release: releasePreferences = value; break; } return; }
public BuildPreferences GetPreferences(BuildPreferencesType type) { BuildPreferences preferences = null; switch (type) { case BuildPreferencesType.Internal: preferences = internalPreferences; break; case BuildPreferencesType.Test: preferences = testPreferences; break; case BuildPreferencesType.Release: preferences = releasePreferences; break; } return(preferences); }