System.Runtime.Serialization.CodeGenerator.Castclass C# (CSharp) Method