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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T23:57:58+00:00 2026-06-06T23:57:58+00:00

I have the following syntax in a .cshtml page: @cell(<Class object>) And is defined

  • 0

I have the following syntax in a .cshtml page:

 @cell(<Class object>)

And is defined like this in the header:

 Func<dynamic, object> cell =
 @<........>;

How can I define the cell Func so that I can send it an int parameter, like this?

 @cell(<Class object>, intNum)

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-06-06T23:57:59+00:00Added an answer on June 6, 2026 at 11:57 pm

    You have 2 ways:

    first one, the clever way: make a class type that contains at least 2 properties, the original Class and the int number that you need. and then access them.

    second one:
    the proper way of razor delegate:

    http://haacked.com/archive/2011/02/27/templated-razor-delegates.aspx

    http://blogs.msdn.com/b/simonince/archive/2012/01/26/templated-razor-delegates-combined-with-partial-views.aspx

    Use delegates is not necessary unless you need to pass html code to an htmlhelper extension.
    Maybe you need to use a @helper function and conserve html inside a cshtml file.

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

Sidebar

Related Questions

I have the following code (changed object names, so syntax/spelling errors ignore). public class
I would like to have the following syntax: python utility.py file1 FILE1 file2 FILE2
I have following sql syntax. This works fine but I was wondering if there
I have a jQuery selector with following syntax: $('input[type=image]').not('.xyzClass').click(function{ //some functionality }); So this
I have created UITableCellView class called NoteCell . The header defines the following: #import
I have the following html syntax <ul> <li class=heading>link</li> <li>link</li> <li>link</li> <li>link</li> <li>link</li> <li
I have following syntax in my script to get email address from string. The
I have the following syntax in the .cmd file, where PathList is console application
I have a music player that links to a song using the following syntax:
I have an MS SQL function that is called with the following syntax: SELECT

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.