Questions tagged as 'c#'

3
answers

MemoryStream vs Stream

What would be the main difference between the two? Are there any advantages to performance gain? For web use, which one is the right one? I am using to "read" an array Byte[] : private void bytetoStrem(byte[] pdf) { Stream...
asked by 05.08.2017 / 15:39
2
answers

Selectize.js with Tags, reload key and value in edit form

   I asked the same question in SO Gringo too . I'm doing a search form ( action=GET ) where a field uses Selectize.js: $("#selectize").each(function () { $(this).selectize({ plugins: ['remove_button'],...
asked by 07.12.2015 / 18:46
1
answer

How to unify redundant namespaces of an XML?

I have the following XML: <?xml version="1.0" encoding="UTF-8"?> <DataTable> <Columns> <DataColumn xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <ColumnName>NomeColuna1</ColumnName>...
asked by 14.01.2014 / 14:50
1
answer

How to make the application wait for a while?

It is common to have situations that we need to delay the execution of the code for a period, either to show or delete a message or something visual soon after, either to try something again, wait for something in a test or something creative th...
asked by 09.09.2015 / 16:55
2
answers

How to edit a list in C #?

I want to edit a customer record in which I can already create a record, consult and remove it. But I have no idea how to edit just a few items without losing others. class Program { static List<Cliente> ClienteList = new List<Cli...
asked by 15.12.2014 / 12:42
2
answers

How to leave an invisible TabPage inside a TabControl?

How can I make a particular TabPage invisible inside a TabControl?     
asked by 13.05.2015 / 21:28
2
answers

New functionality of C # 6 "Auto-property initializers" is just a facilitator?

One of the new C # 6 is the ability to initialize properties at the time of declaration. public class Customer { public string First { get; set; } = "Jane"; public string Last { get; set; } = "Doe"; } The goal is just to make it e...
asked by 15.01.2016 / 16:14
2
answers

Differences between Jagged Array and Multidimensional Array in C #?

Is there a difference in these arrays in C #? int[][][] int[,,] What I see is the same thing, but C # can not cast from one to another.     
asked by 07.08.2016 / 18:52
2
answers

Lambda GroupBy by year and month

I have a list of events, and I would like to group them by year and month, for example [Year 2017] Month January  {Event 1, Event 2, Event 2} Month February  {Event 3} [Year 2018] Month January  {Event 4, Event 5} I'm us...
asked by 11.01.2017 / 20:43
2
answers

How to create a C program and use graphical Java / C # interface?

I'm studying graphical interface in C, and I realized it's very complex and tiring. So I wanted to know if there is a way to create a C program and use a graphical interface in Java or C #. With frameworks or not ...     
asked by 07.09.2015 / 20:26