示例#1
0
 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));
 }
示例#2
0
 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());
 }