Posts by Rod • 9,412 points
210 posts
-
11
votes2
answers677
viewsQ: What is the difference between typeof(T) vs. Object.Gettype()
What’s the difference? Is there any difference between performance?
-
2
votes2
answers222
viewsQ: What difference xmldocument vs xmlwriter?
What is the difference between the two classes? In which situation each fits best?
-
7
votes2
answers1259
viewsQ: Difference in performance and use situation of numerical types
I’d like to know the difference between the guys Long, Double, Float, Decimal and Int, taking into consideration when is the best use in real cases. Ex: "uses float in interest as it is...". And…
-
1
votes2
answers60
viewsQ: Can I override already existing anottation on . net?
I have the following Annotation: [XmlElement(IsNullable = true)] I’d like to see the code behind it, so I can create my own based on it Or if you can write her up…
-
1
votes2
answers368
viewsQ: Override Xmltextwriter - Serialize Class for XML absolutely all attributes
I have my class: public class Pessoa { public int Id {get;set;} public string Nome {get;set;} } I’m trying to serialize for XML this class of mine. public static string CreateXML(object o) {…
-
-1
votes2
answers266
viewsQ: Angularjs directives and compatibility
I have the following doubts regarding AngularJS The directives, I am obliged to create them if I want to use a certain plugin? When it’s right to create them? What about compatibility with other…
-
1
votes1
answer285
viewsQ: Asp.net Identity Good practice authorization
I have my user using Asp.net Identity for authentication as usual I have my class implementing iuser public class usuario: IUser { public User(){...} public User(string userName) (){...} public…
-
1
votes3
answers145
viewsQ: Mark html element
I have my elements in a text. <h2> Titulo </h2> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do <h2> OUTRO TITULO </h2> Lorem ipsum dolor sit amet,…
-
1
votes1
answer110
viewsQ: How do I create a summary in the text with some WYSIWYG?
I would like to create a summary: 1 - Titulo Tal 1.1 - Subtitulo 1.1.2 - outro 2 - Outro titulo 2.1 - subtitulo etc... I would like something automatic, but I have no idea where to start. Could…
-
3
votes4
answers3223
viewsQ: Generate xml through a class, even without value in the property
I am generating an xml through an existing class, for example [XmlRoot("pessoa")] public class pessoa { //[CPFValidation] [XmlElement("cpf")] public virtual string cpf { get; set; }…