@@ -19,7 +19,7 @@ public class Program
1919 {
2020 static void Validate_Numeric_In_ReturnByRef ( )
2121 {
22- var dispatchTesting = ( DispatchTesting ) new DispatchTestingClass ( ) ;
22+ var dispatchTesting = new DispatchTesting ( ) ;
2323
2424 byte b1 = 1 ;
2525 byte b2 = b1 ;
@@ -74,7 +74,7 @@ static private bool EqualByBound(double expected, double actual)
7474
7575 static void Validate_Float_In_ReturnAndUpdateByRef ( )
7676 {
77- var dispatchTesting = ( DispatchTesting ) new DispatchTestingClass ( ) ;
77+ var dispatchTesting = new DispatchTesting ( ) ;
7878
7979 float a = .1f ;
8080 float b = .2f ;
@@ -91,7 +91,7 @@ static void Validate_Float_In_ReturnAndUpdateByRef()
9191
9292 static void Validate_Double_In_ReturnAndUpdateByRef ( )
9393 {
94- var dispatchTesting = ( DispatchTesting ) new DispatchTestingClass ( ) ;
94+ var dispatchTesting = new DispatchTesting ( ) ;
9595
9696 double a = .1 ;
9797 double b = .2 ;
@@ -114,7 +114,7 @@ static int GetErrorCodeFromHResult(int hresult)
114114
115115 static void Validate_Exception ( )
116116 {
117- var dispatchTesting = ( DispatchTesting ) new DispatchTestingClass ( ) ;
117+ var dispatchTesting = new DispatchTesting ( ) ;
118118
119119 int errorCode = 1127 ;
120120 string resultString = errorCode . ToString ( "x" ) ;
@@ -174,15 +174,15 @@ static void Validate_Exception()
174174 static void Validate_StructNotSupported ( )
175175 {
176176 Console . WriteLine ( $ "IDispatch with structs not supported...") ;
177- var dispatchTesting = ( DispatchTesting ) new DispatchTestingClass ( ) ;
177+ var dispatchTesting = new DispatchTesting ( ) ;
178178
179179 var input = new HFA_4 ( ) { x = 1f , y = 2f , z = 3f , w = 4f } ;
180180 Assert . Throws < NotSupportedException > ( ( ) => dispatchTesting . DoubleHVAValues ( ref input ) ) ;
181181 }
182182
183183 static void Validate_LCID_Marshaled ( )
184184 {
185- var dispatchTesting = ( DispatchTesting ) new DispatchTestingClass ( ) ;
185+ var dispatchTesting = new DispatchTesting ( ) ;
186186 CultureInfo oldCulture = CultureInfo . CurrentCulture ;
187187 CultureInfo newCulture = new CultureInfo ( "es-ES" , false ) ;
188188 try
@@ -200,7 +200,7 @@ static void Validate_LCID_Marshaled()
200200
201201 static void Validate_Enumerator ( )
202202 {
203- var dispatchTesting = ( DispatchTesting ) new DispatchTestingClass ( ) ;
203+ var dispatchTesting = new DispatchTesting ( ) ;
204204 var expected = System . Linq . Enumerable . Range ( 0 , 10 ) ;
205205
206206 {
@@ -251,7 +251,7 @@ static System.Collections.Generic.IEnumerable<int> ConvertEnumerable(System.Coll
251251
252252 static void Validate_ValueCoerce_ReturnToManaged ( )
253253 {
254- var dispatchCoerceTesting = ( DispatchCoerceTesting ) new DispatchCoerceTestingClass ( ) ;
254+ var dispatchCoerceTesting = new DispatchCoerceTesting ( ) ;
255255
256256 Console . WriteLine ( $ "Calling { nameof ( DispatchCoerceTesting . ReturnToManaged ) } ...") ;
257257
0 commit comments