public static void Initialize(string apiKey, string sharedSecret) { if (_current != null) { if (apiKey != _current.ApiKey || sharedSecret != _current.SharedSecret) { throw new ArgumentException("Already initialized with different ApiKey or SharedSecret"); } return; } if (_current == null) { _current = new FlickrClient(apiKey, sharedSecret); } }