Xpath by using content-desc in c#

For native we have coded as the Automation-id but in UiAutomator it is showing as Content-desc is it the general way of writing the XPath using content-desc or there is any other way to use that to write XPath. Can you help me out with the sample XPath instance .

Thanks In advance

Here is a syntax that i use usually when dealing with xpath selection:

xpath("//*[@content-desc=“foo” ]")

some extra syntaxes:
you can use some logic gate as OR AND
xpath("//*[@text=“foo” or @label=“foo” ]")

syntax using contains:
xpath("//*[contains(@text, “f”)]")