QUESTIONS

Tagged: .net

answers  0
views  31K
votes  4

[Snippet] How to Encrypt and Decrypt a string in C#  

Here is a code snippet to help you encrypt and decrypt a string in C#. The key is hardcoded, but in your own project you may want to read it from a secure store, or perhaps a config file or environmen ...
Apr 03, 2016
Sacchidananda Murthy
{ 56.9K - 5817 - 5 }
answers  0
views  1K
votes  0

[Article] Overriding the Equals() and GetHashCode() methods in C# - Part 1  

System.Object.Equals() virtual method The Equals() is a virtual method defined in the System.Object class. Since every class is implicitly derived from Object, it provides the Equals() method. publi ...
Apr 21, 2016
Gaime Sullivan
{ 865 - 164 - 0 }
answers  0
views  901
votes  1

[Article] Serialization in .NET - Part 2  

This article is in continuation to this post Serialization in .NET Part 1 Serializable attribute This attribute is applied to a class. It is used to mark the class as serializable. It indicates to t ...
Apr 08, 2016
Karif Aziz
{ 200 - 1 - 0 }
answers  0
views  838
votes  0

[Article] Overriding the Equals() and GetHashCode() methods in C# - Part 2  

This is in continuation to Overriding the Equals() and GetHashCode() methods in C# - Part 1 System.Object.GetHashCode() virtual method This method returns a number for an object that assigned by the . ...
Apr 21, 2016
Gaime Sullivan
{ 865 - 164 - 0 }
answers  0
views  746
votes  1

[Article] Serialization in .NET - Part 4  

This article is in continuation to this post : Serialization in .NET Part 3 Custom Serialization ISerializable interface Sometimes simple annotation doesn't meet our requirements. Implementing the ISe ...
Apr 13, 2016
Karif Aziz
{ 200 - 1 - 0 }
answers  0
views  697
votes  1

[Article] Reflection in .NET - Part 1  

Introduction to Reflection In general, the reflection refers to the ability of a running C# program to inspect data about itself and manipulate accordingly. It is a powerful tool that lets you read wh ...
Apr 19, 2016
Hisham Dalal
{ 100 - 1 - 0 }
answers  0
views  690
votes  0

[Article] IO Streams in .NET - Part 1  

Character Encoding Character Repertoire refers to a set of distinct characters. The characters include letters, numerals, and other symbols. Character Code refers to a mapping in tabular form. Each ch ...
Sep 19, 2016
Leonard Alex Smith
{ 50 - 1 - 0 }
answers  0
views  570
votes  1

[Article] .NET Garbage Collection Mechanism  

What is garbage collection .NET automatically reclaims the memory of objects that are no longer used. The inaccessible objects are identified, their memory is reclaimed, and the managed heap is compac ...
Apr 20, 2016
Zlatan Rafał
{ 100 - 1 - 0 }
answers  0
views  538
votes  0

[Article] IO Streams in .NET - Part 2  

This is in continuation to IO Streams in .NET - Part 1 Streams I/O is an acronym for Input-Output. I/O involves the transfer of data between a program and any kind of I/O device. The I/O devices are r ...
Sep 19, 2016
Leonard Alex Smith
{ 50 - 1 - 0 }
answers  0
views  513
votes  0

[Article] Serialization in .NET - Part 3  

This article is in continuation to this post Serialization in .NET Part 2 XML Serialization In addition to the Binary and SOAP formatters, the .NET provides another type of formatter called XmlSeriali ...
Apr 08, 2016
Karif Aziz
{ 200 - 1 - 0 }
answers  0
views  507
votes  0

[Question] Fastest way to serialize a POCO to JSON and deserialize JSON to a POCO  

What is the fastest way to serialized a POCO object to a JSON string and deserialize a JSON string back to a POCO object? I have seen several libraries and implementations, but what counts for us is s ...
Apr 13, 2016
Klaus Wörner
{ 50 - 1 - 0 }
answers  0
views  448
votes  0

[Article] Reflection in .NET - Part 2  

This is in continuation to Reflection in .NET - Part 1 Retrieving a Type System.Type class Every CLR object or value is an instance of some type. A type itself is an instance of type System.Type. An i ...
Apr 19, 2016
Hisham Dalal
{ 100 - 1 - 0 }
answers  0
views  400
votes  1

[Article] Serialization in .NET - Part 1  

Serialization Serialization is the technique used by the .NET runtime. The runtime serialization functionality resides in the System.Runtime.Serialization namespace. It involves converting all of the ...
Apr 08, 2016
Karif Aziz
{ 200 - 1 - 0 }
answers  0
views  399
votes  1

[Question] When to use 'ref' and 'out' keywords - specifically with strings?  

Generally, I understand the difference between passing parameters by value and by reference. I also somewhat understand the difference between ref and out keywords. A ref variable is passed by refere ...
Apr 02, 2016
Sabri 'Afif Safar
{ 55 - 1 - 0 }
answers  0
views  360
votes  0

[Article] Reflection in .NET - Part 3  

This is in continuation to Reflection in .NET - Part 2 Querying the fields for their attached attributes Consider a library app that has the entities like Book, Student, etc. Now you can use attribute ...
Apr 19, 2016
Hisham Dalal
{ 100 - 1 - 0 }
21  posts
You may also like
When to use 'ref' and 'out' keywords - specifically with strings?
Visual Studio 2015 F10 Debugger key not working
Horizontally centering a <div> inside another <div>
How to Encrypt and Decrypt a string in C#
Server Side Rendering in JavaScript?
Curlybrackets Software
The source code for Curlybrackets (C#/.NET/SQL Server) is available for purchase here. Start your own Q+A site now!

Easily create custom post types: messages, ideas, questions, tickets, whatever.

The Software Pack is a great place to start your corporate Q+A customer support site.