public string getImageURL(ImageURLType imageURLType, ImageOrientation pictureOrientation, ImageType imageType) { if(imageURLs == null || !imageURLs.ContainsKey(imageURLType)) return null; var imageURLTypeDict = imageURLs[imageURLType]; if(imageURLTypeDict == null || !imageURLTypeDict.ContainsKey(pictureOrientation)) return null; var pictureOrientationDict = imageURLTypeDict[pictureOrientation]; if(pictureOrientationDict == null || !pictureOrientationDict.ContainsKey(imageType)) return null; return pictureOrientationDict[imageType]; }
public void setImageURL(string url, ImageURLType imageURLType, ImageOrientation pictureOrientation, ImageType imageType) { if(url == null || imageURLs == null || !imageURLs.ContainsKey(imageURLType)) return; var imageURLTypeDict = imageURLs[imageURLType]; if(imageURLTypeDict == null || !imageURLTypeDict.ContainsKey(pictureOrientation)) return; var pictureOrientationDict = imageURLTypeDict[pictureOrientation]; if(pictureOrientationDict == null) return; pictureOrientationDict[imageType] = url; System.Console.WriteLine(pictureOrientationDict[imageType]); }
public string getImageURL(ImageURLType imageURLType, ImageOrientation pictureOrientation, ImageType imageType) { if (imageURLs == null || !imageURLs.ContainsKey(imageURLType)) { return(null); } var imageURLTypeDict = imageURLs[imageURLType]; if (imageURLTypeDict == null || !imageURLTypeDict.ContainsKey(pictureOrientation)) { return(null); } var pictureOrientationDict = imageURLTypeDict[pictureOrientation]; if (pictureOrientationDict == null || !pictureOrientationDict.ContainsKey(imageType)) { return(null); } return(pictureOrientationDict[imageType]); }
public void setImageURL(string url, ImageURLType imageURLType, ImageOrientation pictureOrientation, ImageType imageType) { if (url == null || imageURLs == null || !imageURLs.ContainsKey(imageURLType)) { return; } var imageURLTypeDict = imageURLs[imageURLType]; if (imageURLTypeDict == null || !imageURLTypeDict.ContainsKey(pictureOrientation)) { return; } var pictureOrientationDict = imageURLTypeDict[pictureOrientation]; if (pictureOrientationDict == null) { return; } pictureOrientationDict[imageType] = url; System.Console.WriteLine(pictureOrientationDict[imageType]); }