CCNet.Build.Confluence.PageDocumentExtensions.RemoveIfExists C# (CSharp) Method

RemoveIfExists() public static method

Removes specified attribute, allows null to be passed.
public static RemoveIfExists ( this attribute ) : void
attribute this
return void
		public static void RemoveIfExists(this XAttribute attribute)
		{
			if (attribute == null)
				return;

			attribute.Remove();
		}
	}