<NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
<DefineConstants>$(DefineConstants);STATIC</DefineConstants>
+ <NoWarn>0618;0649</NoWarn>
</PropertyGroup>
<!-- Default configurations to help VS understand the configurations -->
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
int retVal = 100;
IntPtr ip;
- Object o;
SomeTestStruct someTs = new SomeTestStruct();
- StructWithFxdLPSTRSAFld someTs_FxdLPSTR = new StructWithFxdLPSTRSAFld();
#if BUG_876976
Console.WriteLine("Testing SizeOf...");
Console.WriteLine("\n\tPassing structure that has no layout and CANNOT be marshaled");
try
{
- Marshal.SizeOf(someTs_FxdLPSTR.GetType());
+ Marshal.SizeOf(typeof(StructWithFxdLPSTRSAFld));
retVal = 0;
Console.WriteLine("\t\tNO EXCEPTION THROWN! FAILED!");
}
Console.WriteLine("\n\tPassing structure that has no layout and CANNOT be marshaled");
try
{
- Marshal.OffsetOf(someTs_FxdLPSTR.GetType(), "Arr");
+ Marshal.OffsetOf(typeof(StructWithFxdLPSTRSAFld), "Arr");
retVal = 0;
Console.WriteLine("\t\tNO EXCEPTION THROWN! FAILED!");
}
Console.WriteLine("DONE testing Copy.");
+#if ISSUE_6605
//////////////////////////////////////////////////////////////
//IsComObject
/////////////////////////////////////////////////////////////
retVal = 0;
Console.WriteLine("\t\tUNEXPECTED EXCEPTION:\n\t\t\t" + e.ToString());
}
-
+#endif
Console.WriteLine("DONE testing IsComObject.");
- return 100;
+ return retVal;
}
-}
\ No newline at end of file
+}
<NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
<DefineConstants>$(DefineConstants);STATIC</DefineConstants>
+ <NoWarn>0618;0649</NoWarn>
</PropertyGroup>
<!-- Default configurations to help VS understand the configurations -->
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp>
<DefineConstants>$(DefineConstants);STATIC</DefineConstants>
+ <NoWarn>0618;0649;0169</NoWarn>
</PropertyGroup>
<!-- Default configurations to help VS understand the configurations -->
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">