private static VsExpansion ConvertToVsExpansionAndFree(ExpansionBuffer buffer) { VsExpansion expansion = new VsExpansion(); ConvertToStringAndFree(ref buffer.descriptionPtr, ref expansion.description); ConvertToStringAndFree(ref buffer.pathPtr, ref expansion.path); ConvertToStringAndFree(ref buffer.shortcutPtr, ref expansion.shortcut); ConvertToStringAndFree(ref buffer.titlePtr, ref expansion.title); return(expansion); }
private static VsExpansion ConvertToVsExpansionAndFree(ExpansionBuffer buffer) { VsExpansion expansion = new VsExpansion(); ConvertToStringAndFree(ref buffer.descriptionPtr, ref expansion.description); ConvertToStringAndFree(ref buffer.pathPtr, ref expansion.path); ConvertToStringAndFree(ref buffer.shortcutPtr, ref expansion.shortcut); ConvertToStringAndFree(ref buffer.titlePtr, ref expansion.title); return expansion; }