All Questions

4
answers

Passing by JavaScript value

I have two objects: A and B: var A={valor:0} var B={valor:0} A=B A.valor=5 console.log(B.valor) // 5 I would like to know how to pass by value, since JavaScript passes by reference to objects, in this example I would like b.valor to...
asked on 15.03.2018 / 19:34
3
answers

Creating a List from a Json C #

I have a question regarding JSON, I have the following JSON: { "jsonrpc":"2.0", "result":{ "nr":26, "lista":[ { "codigo":"2", "nome":"Pratos Quentes", "foto":"./images/cupcake.png" }, {...
asked on 20.04.2017 / 22:39
2
answers

CompareTo: Comparison method violates its general contract!

I found a lot of questions about this, and tried all the suggestions I found, however, the problem persisted. If someone can help me, here's my problem: I have a list of requests, this list is updated from pull to refresh, and reordered by...
asked on 15.12.2014 / 19:44
2
answers

How to check if a number is decimal?

Is there a way to tell if a number is a decimal, that is, if it contains a "comma"?; A code I found was this: Html <input type="text" onblur="isNumber(this.value)" id="text" /> JavaScript function isNumber(text){...
asked on 05.08.2014 / 22:45
2
answers

How to give split in a String that contains blanks in the beginning?

For the problem in question, I need to remove all special characters and spaces and count the possible new outputs. My intention is to separate the String with the split() method. For this, based on another expression I saw, I created thi...
asked on 20.08.2018 / 22:18
2
answers

C # MVC Asp .NET Paging

I have a performance problem in paging with Entity Framework and SQL SERVER, first it does getAll to later list paging var bdPergunta = new PerguntaRepositorioEF(contexto); var pergunta = bdPergunta.GetAll().OrderByDescending(x => x....
asked on 29.07.2015 / 15:41
3
answers

How do I delete a character within a string?

In this code I read two strings and remove all first letters in common with the second string . But how do you put a null character in place of this letter in common in the two strings ? My code looks like this: char str1[15], str2[15];...
asked on 12.09.2014 / 20:34
2
answers

Is Tuple the same thing as creating an object?

I've used Tuple a few times today came the doubt, this: public class User{ public String Name {get; set;} public String LastName {get; set;} } new User(){ Name = "Leonardo", LastName = "Bonetti" } Is it the same as...
asked on 13.08.2018 / 17:05
2
answers

Convert.ToString () and .ToString ()

Are there any glaring differences between them? Whether in performance or ways of treating, what are their particularities? What would be the correct way to use it (if there is any difference)?     
asked on 06.04.2016 / 20:03
5
answers

How to set the border color of a table without CSS?

Is there any way? I do not want CSS neither external, nor internal, just plain html. Follow my code. <table widths="30;60" cellpadding="1.5" border="1"> <tr> <td> <p >Data:</p>...
asked on 28.03.2014 / 21:27