Questions tagged as '.net'

2
answers

Any method to save the data of an ArrayList

First of all, some information:   .NET Framework 4.0 Visual C # = = I am simulating a database using a class specifically for this, using a List<string[]> , however, I would like to be able to store and save this data even...
asked by 26.04.2014 / 02:12
1
answer

What would be the difference between fields and variables in C #?

What would be the difference between fields and variables in C #?     
asked by 26.10.2018 / 05:01
1
answer

Compare two lists of objects and pick up only the different [duplicate]

I'm having trouble comparing two lists of the same type List<Produto> in my product class I have the following structure. public class Product { public int IdProduct { get; set; } public String Name { get; se...
asked by 30.10.2018 / 13:50
1
answer

How do I show and select one of the digital certificates on my computer

In my work environment I have some certificates and I need to select one of them, I would like to know via VN.Net or C # code how do I display a list and choose the digital certificate that I need without having to assign this list of certificat...
asked by 05.02.2015 / 13:18
1
answer

Take X size of a PictureBox?

I have a Picture Box , and in a certain part of the code I edit the horizontal size (x) of it, then down in the code, I need to edit only the vertical size (y). I want the size of (x) to continue the same as it is currently. Just one example:...
asked by 19.11.2014 / 01:52
1
answer

Read a value inside a complex JSON in C #

Good morning everyone! I am new to C # and am having a hard time getting a value inside a complex Json. Json is this: { "id": "58e50b82-50b1-4f29-a2e8-a9a544013255", "timestamp": "2018-06-20T18:00:12.935Z", "lang": "pt-br", "result":...
asked by 25.06.2018 / 14:45
2
answers

Collect system resource information

I'm using S.O. windows, and C # programming language. How to collect system resource information in C #? processing, memory, disk. I am doing performance testing with multiple clients and a server using sockets, and I want the server to show...
asked by 19.03.2014 / 19:19
1
answer

Get XML value

I'm having trouble getting the true value of this XML: <boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean> I tried this way but I could not: var ns = xDoc.Root.GetDefaultNamespace();...
asked by 29.03.2014 / 16:39
3
answers

How to store a single character?

My class has an attribute that is a single character. I can store as string , but I think the correct one would be char . But this attribute can receive a int (between 0 and 9) of another method. How do I save this number in t...
asked by 09.12.2017 / 22:27
1
answer

Is it possible to insert parameters in the filters attributes?

I use ASP.NET and to do access control by level, I use a filter that checks the user's permission level and allows access to view . [HttpPost] [AutorizacaoFilterAttribute] //Esse filtro analisa a permissão do usuário public ActionResult GetEm...
asked by 08.05.2018 / 17:17