Dictionary in C# with Examples

In c#Dictionary is a generic type of collection and it is used to store a collection of key / value pairs that are organized based on the key. The dictionary in c# will allow to store only the strongly typed objects i.e. the key / value pairs of specified data type.

 

In c#, while storing the elements in dictionary object, we must need to make sure that the keys are unique because the dictionary object will allow us to store a duplicate values but the keys must be unique.

 

In c#, the dictionary object is same as hashtable object but only difference is the dictionary object is used to store a key value pair of same data type elements.

To learn more about dictionary in c#, check following article.

www.tutlane.com

 

Collections in C# with Examples

In c#, collection is a class which is used to manage a group of objects in flexible manner to perform a various operations like insert, update, delete, get, etc. on object items in dynamic manner based on our requirements.

 

Generally, while working in c# applications we will get a requirement like to create or manage a group of related objects. In that case, we have a two ways to create a group objects in c# i.e. by using arrays and collections.

 

In previous section, we learned about arrays in c# but those are useful only when we are working with fixed number of strongly-typed objects. So, to solve this problem Microsoft has introduced a collections in c# to work with group of objects which can grow or shrink dynamically based on our requirements.

 

In c#, collection is a class so we must need to declare an instance of the class before we perform any operations like add, delete, etc. on defined collection and the collections are implemented by using IEnumerable interface so we can access collection items by using foreach loop.

 

To learn more about collections in c# check following url

www.tutlane.com

 

SQLite Tutorial with Examples

If you want a step by step sqlite tutorial with examples, then check tutlane.com sqlite tutorial they covered each topic in detailed manner with examples.

www.tutlane.com

Following are the some of sqlite topics they covered.

and many more articles related to sqlite.

RabbitMQ in C# with Examples

RabbitMQ is the most popular open source and cross-platform message broker. RabbitMQ will provide a way to exchange the data between different applications such as a message sent from.Net application can be read by a Node.js application or Java application. 

www.tutlane.com

In RabbitMQ tutorial, we covered a topics from basic to advanced level, those are 

 

  1. RabbitMQ Installation
  2. RabbitMQ Exchanges
  3. RabbitMQ Queues
  4. RabbitMQ Bindings
  5. RabbitMQ Publish Messages

  6. RabbitMQ Read Message
  7. RabbitMQ in .NET
  8. RabbitMQ Publish Message in C#
  9. Types of Exchanges and many more topics in RabbitMQ.

Areas in Asp.Net MVC with Example

In asp.net mvc when we partition web applications into smaller units that are referred as areas. Areas provide a way to separate a large mvc web application into smaller functional groupings.

If we have small web application then the default folder structure work fine to maintain application. But if your application becomes big then it create problem to maintain for example if we have large hospital portal then there are various section in it and if we use default folder structure which we have then it will create a mess. In this condition we need to use Areas for separating our application.

To know more about areas in asp.net check following link.

www.tutlane.com

C# Tutorial for Beginners and Experienced with Examples

C# (pronounced as “C Sharp”) is a simple, modern, object-oriented and type safe programming language. C# language has it's roots from the family of C languages such as C, C++ and it is mostly similar to Java programming.

 

C# Programming language will allow developers to build a variety of secure and robust applications such as windows applications, web applications, database applications, etc. which will run on .NET Framework.

 

C# programming language has built on .NET Framework so to run the c# applications, we required to install a .NET Framework component on our machines.

 

.NET Framework is a development platform for building an apps for windows, web, azure, etc. by using programming languages such as C#, F# and Visual Basic. It consists of a two major components such as Common Language Runtime(CLR), it’s an execution engine that handles running apps and .NET Framework Class Library, which provides a library of tested and reusable code that developers can use it in their applications. To know more about c#, check this

www.tutlane.com

.

Fragments in Android with Examples

In android, Fragments are the modular section of an activity design and these are used to represent the behaviour of user interface (UI) in an activity. By using fragments we can create a flexible UI designs that can be adjusted based on the device screen size such as tablets, smartphones.

 

We can build multi-pane UI by combining multiple fragments in a single activity and we can reuse same fragment in multiple activities. The fragment has its own lifecycle call-backs and accept its own input events.

 

We can add or remove fragments in an activity while activity is running. In android, the fragment will act as a sub-activityand we can reuse it in multiple activities.

 

Generally, in android the fragment must be included in an activity due to that the fragment lifecycle will always effected by the host activity life cycle. In case if we pause an activity, all the fragments related to an activity will also be stopped.

 

In android, we can insert fragment into activity layout by using <fragment> element and by dividing the layout of an activity into fragments, we can modify the appearance of an app design at runtime. We can also implement a fragment without having any user interface (UI). To know more about fragments in android check this

www.tutlane.com

.