I need to write a Attribute that writes a mask validation to View. For example, I would like to mark a property in the Model with a [CEP] , write the following in the View:
<script type='text/javascript'>
$(docu...
For deletion of records you may not have, but for Insertion and Amendment I believe there should already be something discussed.
The best recommended practice on Insertion and Change is ViewModel's , where you create a view that is appropri...
I have a list:
List<int> lista1 = new List<int>();
lista1.Add(1);
lista1.Add(2);
lista1.Add(3);
List<int> lista2 = new List<int>();
lista2.Add(1);
lista2.Add(2);
To get from lista1 elements that also exist in...
What are metadata in C # / .NET? What are they good for, and how can I use them?
I was looking at a template of Visual Studio, and browsing through the files, I came across them.
There is this PDF Compressor site that compresses files from 300k to 90k , was looking for in Google and I could not find anything related to doing in c# .
Does anyone know of an algorithm that does the same thing in C...
I'm developing an application in C # and would like to know how to merge two results from two queries into one. I have the following code:
public List<MalaDireta> ObterMalaDireta()
{
List<MalaDireta> resultado = new List&...
I have a list of objects and I want to sort the list by one of the properties (Desc of string type), how do I do this?
public class Foo
{
public string Desc { get; set; }
// Várias outras propriedades
}
public class Program
{
sta...
I see many third-party codes and I often see the use of the question mark in the variable type.
Example:
public bool? Status
Can anyone explain to me the difference between not having this ? sign in the bool data type.
Let's say I wanted to do something like this question
How to convert CamelCase to snake_case in C #?
Convert CamelCase to snake_case in C #
You had some answers, but I want to highlight these two.
Answer 1
string stringSnake =...
I'm developing an application for Windows 10 and on the Microsoft website it does not tell you which pattern to adopt for I mage Asset s: Square 44x44 Logo , Store Logo and Badge Logo .
The image below is an example where it shows a c...