Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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;
        }