23 Dec: Must Read Codes [11-15]

codereads
codereads

23 Dec: Must Read Codes [11-15]

We are sharing few must read codes/concepts which are required now and then. Each of these codereads doesn’t require a full length descriptive article so combining them into groups of five.

CodeReads #11,

We have two properties in CSS to hide the elements but there is a difference in their behavior such as
if we use ‘Visibility:Hidden;’ : element will NOT be visible but will take its space on the page.
if we use ‘Display:None;’ : element will NOT be visible and also in addition to that, will NOT take up space on the page. This makes page lighter.

fbsource:https://www.facebook.com/codespread/posts/554571687899390

CodeReads #12,

A jagged array is an array of arrays and is declared as

string[][] jagarray;

For example:

string[2][4] jagarray;

It is jagged array where first square bracket is a one-dimensional array and contains two arrays where each one of them internally contains 4 arrays.

A multidimensional array is declared as

string[ , ] mularray;

For example:

string[2,4] mularray;

It is multidimensional array where ‘,’ separates it to two dminesions containing 2 and 4 elemnts respectively.

fbsource: https://www.facebook.com/codespread/posts/554833934539832

CodeReads #13,

To Count number of tables in a SQL Server database
USE DB_NAME
SELECT COUNT(*) from information_schema.tables
WHERE table_type = ‘base table’

fbsource:https://www.facebook.com/codespread/posts/561133753909850

CodeReads #14,

Garbage collection occurs when one of the following conditions is true:

1.The system has low physical memory.

2. The memory that is used by allocated objects on the managed heap surpasses an acceptable threshold. This means that a threshold of acceptable memory usage has been exceeded on the managed heap. This threshold is continuously adjusted as the process runs.

3. The GC.Collect method is called. In almost all cases, you do not have to call this method, because the garbage collector runs continuously. This method is primarily used for unique situations and testing.
Source:MSDN

fbsource: https://www.facebook.com/codespread/posts/577240208965871

CodeReads #15,

A property is classified according to the accessors used as follows:

1.A property with a get accessor only is called a read-only property. You cannot assign a value to a read-only property.
2.A property with a set accessor only is called a write-only property. You cannot reference a write-only property except as a target of an assignment.
3.A property with both get and set accessors is a read-write property.
Source:MSDN

fbsource:https://www.facebook.com/codespread/posts/580366678653224

Author: hershey

A passion for knowledge drives me to do programming, A passion for programming drives me to create something different, A passion for creation drives me to spread the knowledge.

Share This Post On

0 Comments

  1. nice superb explaination

    Post a Reply
  2. thanks for the tutorial
    I am having a problem.
    The feature “Create SQL server database” isn’t available , I can’t select it.
    Can you help, please ?

    Post a Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

More from CodeSpread:

  • 20 Dec: Must Read Codes [6-10]20 Dec: Must Read Codes [6-10]We are sharing few must read codes/concepts which are required now and then. Each of these codereads doesn’t require a full length descriptive article so combining them into groups of five. CodeRe...
  • 19 Dec: Must Read Codes [1-5]19 Dec: Must Read Codes [1-5]We are sharing few must read codes/concepts which are required now and then. Each of these codereads doesn't require a full length descriptive article so combining them into groups of five. CodeRe...
  • 24/12/2013: 10 Best Practices of programming from CodeSpread(31-40)24/12/2013: 10 Best Practices of programming from CodeSpread(31-40)We love programming and having a knowledge of best practices always helps in writing beautiful code. We have shared first 20 random best practice in our previous articles 1-10, 11-20, 21-30. More b...
  • 16/12/2013: 10 Best Practices of programming from CodeSpread16/12/2013: 10 Best Practices of programming from CodeSpreadWe love programming and having a knowledge of best practices always helps in writing beautiful code. Here, we have few best practices shared by professionals. Best Practice#1, Use foreach loop i...
  • Release of jQuery 1.11.0/2.1.0 Beta 2 Release of jQuery 1.11.0/2.1.0 Beta 2 We have latest news from jQuery desk. On Nov 15th2013, jQuery official site announced the release of  jQuery 1.11.0/2.1.0 Beta 2. These bets versions can be downloaded from the below mentioned li...
  • ASP.NET and Web Tools 2013.1 for Visual Studio 2012ASP.NET and Web Tools 2013.1 for Visual Studio 2012.NET Web Development and Tools group at Microsoft announces release of ASP.NET and Web Tools 2013.1 for Visual Studio 2012. Few of the features are: 1) Round tripping: With this update, developer...
  • 18/12/2013: 10 Best Practices of programming from CodeSpread(21-30)18/12/2013: 10 Best Practices of programming from CodeSpread(21-30)We love programming and having a knowledge of best practices always helps in writing beautiful code. We have shared first 20 random best practice in our previous articles 1-10, 11-20. More best pra...
  • jQuery: Effects/MethodsjQuery: Effects/MethodsIn our last article, jQuery Part 1 , we covered the basic understanding and now we will move to Methods or effects available in jQuery. Hide/Show/Toggle Methods The most used method Hide/Show. Fr...