BExplorer.Shell.Interop.IconReference.IconReference C# (CSharp) Method

IconReference() public method

Overloaded constructor takes in the module name and resource id separated by a comma.
public IconReference ( string refPath ) : System
refPath string Reference path for the icon consiting of the module name and resource id.
return System
		public IconReference(string refPath)
			: this() {
			if (string.IsNullOrEmpty(refPath)) {
				throw new ArgumentNullException("refPath");
			}

			string[] refParams = refPath.Split(commaSeparator);

			if (refParams.Length != 2 || string.IsNullOrEmpty(refParams[0]) || string.IsNullOrEmpty(refParams[1])) {
				throw new ArgumentException("", "refPath");
			}

			moduleName = refParams[0];
			ResourceId = int.Parse(refParams[1], System.Globalization.CultureInfo.InvariantCulture);

			this.referencePath = refPath;
		}

Same methods

IconReference::IconReference ( string moduleName, int resourceId ) : System