private static void RunStructTests() { Assert.True(MatchFunctionNameInStruct(new StringInStruct { str = nameof(MatchFunctionNameInStruct) })); var str = new StringInStruct { str = InitialString }; ReverseInplaceByrefInStruct(ref str); Assert.Equal(Helpers.Reverse(InitialString), str.str); }
public static extern void ReverseInplaceByrefInStruct(ref StringInStruct str);
public static extern bool MatchFunctionNameInStruct(StringInStruct str);