NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Warning (level 1) CS0183

The given expression is always of the provided ('type') type

If a conditional statement always evaluates to true, then you do not need a conditional statement.

The following sample generates CS0183:

using System;
public class Test {
   public static void Main() {
      Object obj3 = null;
      String str2 = "CS0183";
      obj3 = str2;

   if ( obj3 is String ) 
      Console.WriteLine( "obj3 is String" );

   if ( str2 is Object ) 
      Console.WriteLine( "str2 is Object" );   // CS0183
   }
}