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

  • SEARCH
  • Home
  • 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 6199129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T04:08:15+00:00 2026-05-24T04:08:15+00:00

Possible Duplicate: ? (nullable) operator in C# In System.Windows.Media.Animation I see the code as

  • 0

Possible Duplicate:
? (nullable) operator in C#

In System.Windows.Media.Animation I see the code as follows:

    public double? By { get; set; }

What does the ? operator do here? Does anyone know?

I’ve tried to google this but it’s hard to search for the operator if you don’t know what its called by name. I’ve checked the page on Operators (http://msdn.microsoft.com/en-us/library/6a71f45d(v=vs.80).aspx) but the ? operator is not listed there.

Thanks!

  • 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-24T04:08:16+00:00Added an answer on May 24, 2026 at 4:08 am

    The ? is a type decorator. T? is the same as Nullable<T>, i.e. a nullable value type.

    The documentation of the By property explains why it’s used here:

    The property controls how A DoubleAnimation progresses; but instead of setting the By property, you can also set the From and To properties (or either) to control animation progress. Every combination of properties (except To and By) is allowed, so there needs to be a way to signal that a property is not set – hence it’s nullable.

    Use the By property when you want to animate a value “by” a certain amount, rather than specifying a starting or ending value. You may also use the By property with the From property.

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

Sidebar

Related Questions

Possible Duplicate: Conditional operator assignment with Nullable<value> types? in the following code snippet company.ParentID
Possible Duplicate: Nullable types and the ternary operator. Why won’t this work? This is
Possible Duplicate: Nullable types and the ternary operator. Why won’t this work? for example:
Possible Duplicate: Nullable types and the ternary operator: why is `? 10 : null`
Possible Duplicate: How to check if an object is nullable? I have a System.Type
Possible Duplicate: Conditional operator assignment with Nullable<value> types? Hi, Why this doesn't work? DateTime?
Possible Duplicate: ? (nullable) operator in C# What does the ? do used like
Possible Duplicates: Nullable types and the ternary operator. Why won’t this work? Conditional operator
Possible Duplicate: Type result with Ternary operator in C# I ran into this scenario,
Possible Duplicate: Finding the Variable Name passed to a Function in C# public new

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.