public static void DeepDuplicateStrings( [DNNE.C99Type("struct string_container")] StringContainerNative strings, [DNNE.C99Type("struct string_container*")] StringContainerNative *pStringsOut) { // Round trip through the managed view to allocate a new native instance. *pStringsOut = StringContainerMarshaller.In.ConvertToUnmanaged(StringContainerMarshaller.Out.ConvertToManaged(strings)); }
public static void DeepDuplicateStrings( [DNNE.C99Type("struct string_container")] StringContainerNative strings, [DNNE.C99Type("struct string_container*")] StringContainerNative *pStringsOut) { // Round trip through the managed view to allocate a new native instance. *pStringsOut = new StringContainerNative(strings.ToManaged()); }