Collins, Michael G wrote: > if( control as LiteralControl != null )
More readable, IMO: if( control is LiteralControl ) :) But in reality you should probably just use as to perform the cast into a local, and then check that against null and use it. Prevents the expensive double validation. Brad -- Read my web log at http://www.quality.nu/dotnetguy/ You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.