Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-1886

Can't cast Int32 to Int16

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Gone away
    • Affects Version/s: 2.4.1
    • Fix Version/s: None
    • Component/s: Serialization
    • Labels:
      None
    • Environment:
      .NET core, Windows 10

      Description

      If I have property of my class with type ushort. I get exception: Unable to cast object of type 'System.Int32' to type 'System.UInt16'.

      I would like to solve the problem with a type cast. Please use TryParse if necessary.

        Attachments

          Activity

            People

            Assignee:
            rstam Robert Stam
            Reporter:
            boniface Vorobjev Valery
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: