private static string GetDirectoryNameHelper(string path) { using (var pin = new PinCollection()) { return(StringResult.FromNative(NativeCommon.FabricGetDirectoryName(pin.AddBlittable(path)))); } }