Exemplo n.º 1
0
 public static partial int SumStringLengths([MarshalUsing(typeof(Utf16StringMarshaller), ElementIndirectionDepth = 1)] WrappedList_V1 <string> strArray);
Exemplo n.º 2
0
        public void ByValueCollectionWithNonBlittableElements_WithDefaultMarshalling()
        {
            var strings = new WrappedList_V1 <string>(GetStringList());

            Assert.Equal(strings.Wrapped.Sum(str => str?.Length ?? 0), NativeExportsNE.Collections.V1.SumStringLengths(strings));
        }