Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7496067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T18:27:52+00:00 2026-05-29T18:27:52+00:00

weird problem… Ive implemented covariance from example . My target FW is 4.0. How

  • 0

weird problem…

Ive implemented covariance from example .

My target FW is 4.0.

How ever . I wanted to see if it fails on 3.5 /2 -> but it wont.

It cant be since covariance is from FW4.0.

enter image description here

After changing to 3.0 i Build and see : (+wont fail on runtime)

enter image description here

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T18:27:55+00:00Added an answer on May 29, 2026 at 6:27 pm

    Covariance was supported in framework 3, but not implemented in the compiler. You are using compiler 4 targeting framework 3.

    This is mentioned in an Eric Lippert blog post, I’ll see if I can find it..

    EDIT

    To further clarify,: The Common Language Runtime and the C# compiler (csc.exe) are two separate things. Covariance and Contravariance where introduced to the CLR at version 2.0. They were not introduced to C# until version 4. You are using Compiler 4 to build version 3 IL which is why it works.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Very weird problem. Saving email addresses to my database, but when I query those
I've got weird problem. I'm trying to write simple game in C++, but I
i'm having an weird problem, my project have a login page, that's working, but
I got a weird problem. I have a program that (does many things but
Weird problem. I update the site CSS sheet and the changes show straight away
Weird problem: After rotating my app to portrait, picking the toolbar item and exposing
This is a really weird problem that I have been having. When I download
I've got this weird problem - I'm calling ChangeServiceConfig on a newly installed service
This is a weird problem I have started having recently. My team is developing
I'm experiencing this weird problem which my scrollbar jumps by itself to somewhere that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.