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 8281413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T10:01:27+00:00 2026-06-08T10:01:27+00:00

I was working on refactoring some c# code with ReSharper. One of the things

  • 0

I was working on refactoring some c# code with ReSharper. One of the things I’ve run into is a c# operator that I’m unfamiliar with.

In my code, I had this

Mathf.FloorToInt(NumRows/2)

where NumRows is an integer. ReSharper suggests that I should change it to

Mathf.FloorToInt(f: NumRows/2)

I’m pretty sure that f: is some flag that tells it to cast NumRows as a float but I cannot find any documentation for f: online. Can anyone elaborate on what exactly f: does or link me to a MSDN page about it?

(Although I have a good idea of what f: does, it’s hard to search the internet for a colon, and I’d like to know what it does before I use it)

Update 1: Regardless of what I’m trying to do, I’m interested in the f-colon syntax

Update 2: Turns out it was actually Visual Studio suggesting that I could add the argument name ‘f’ not ReSharper, but that does’t change the correct answer..

  • 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-06-08T10:01:28+00:00Added an answer on June 8, 2026 at 10:01 am

    It’s a named parameter. Look at the defintion of Mathf.FloorToInt, it will have a parameter named f.

    Resharper is indicating that the code could be made more readable by using a named parameter in this case.

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

Sidebar

Related Questions

I'm refactoring some code that currently looks like this: $$('#wrapper > div').each(function(e){ if((e.id!='header') &&
I'm refactoring some code in a project I'm working on and I ran into
I'm refactoring some code so that my app will pull data from a website
I'm working on some refactoring of legacy code to move styles to a stylesheet
I am working on some OLD (as in older than me) C code that
I am refactoring some code that I did not write, and I found a
I am working on some legacy code and have come across something that I'm
I am working on a Python module that suppose to checkout some code from
I have inherited a somewhat messy query that I am working on refactoring to
So, this is actually this question is my current keystone. I'm working on refactoring

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.