Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
Is there any good example of the transmission bool parameter with attribute routing?
For example I can transform route
{controller}/{action}?param=true
to
{controller}/{action}/param=true
but it still "dirty".
Sorry for dummy question (:
Solution is use two attribute like this:
[Route("ValuesForFalse/{param=false}")]
[Route("ValuesForTrue/{param=true}")]
you can use like this
{controller}/{action}/{param}
param is bool
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 3 years ago.
Improve this question
I know you can easily create a wrapper around BinaryReader and expose Read7BitEncodedInt
But I'm just curious why the creators chose to not make it public
Is there a logic reason for it?
My guess is that this is internal implementation detail and isn't required to effectively use the BinaryReader. I wonder the opposite, why isn't it private? Presumably, there is a subclass out there that needs to use it or overwrite the implementation...
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
Does this have any adverse effects on our CRUD operations?
Is there a significant difference if we don't use these attributes in our model?
Yes, there are a significant difference if you dont use the attributes.
See:
https://learn.microsoft.com/es-es/dotnet/framework/wcf/feature-details/using-data-contracts
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I need to get the attribute name in the XPath "root/customer/contact_number[#cellPhone]" so I could get "cellPhone".
I know how to get the entire "[#cellPhone]" string using "[#(.*?)]" as per this. I need the solution to be Regex as well.
Try this:
(?<=\[#)(.*?)(?=\])
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I have a question about C# naming convention rules.
I know that you write ex. CustomerId.
But what if it the property is a List of CustomerId's?
Should I write CustomerIds or CustomerIdS?
MSDN describes using pascal casing for member names. There is no specific guideline on plurals as far as I can see, but I would suggest CustomerIds since it feels more natural to me.
Also here the question between ID and Id is answered: use Id.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I've been developning c# app in WPF for a few years now and I wanna start doing webapps in ASP.NET but I've now Idea where to start. Can anyone gimme some gudiance on where to start?
You may start here: http://asp.net or more precisely here: http://www.asp.net/get-started