DCSIMG
C# - Life Michael

Browse by Tags

All Tags » C# (RSS)

Reading Bytes From File in C#

Reading bytes from a file has never been simpler. Thanks to the various classes and methods in the .NET framework we can read the entire content of a file in one line of code. The following video clip (hebrew) explains how to do it. More video clips that explain fundamental topics in C# can be found at www.CSharpBook.co.il .
Posted by life | with no comments
תגים:, ,

Creating Threads in C#

Creating a new thread in C# involves with using the ThreadStart delegate type. The following video clip (hebrew) explains how to create simple threads using that delegate type. More video clips about fundamental topics in C# can be found at www.CSharpBook.co.il
Posted by life | with no comments
תגים:, ,

The WebClient Class in C#

Using the WebClient class we can easily download files through HTTP connection to the server on which it was saved, and save it with a new name on our computer. The following video clip (hebrew) shows how to do it. More video clips that explain fundamental topics in C# can be found at www.CSharpBook.co.il .
Posted by life | with no comments

Define Exception Type in C#

We can define our own exceptions in order to describe specific malfunction states in our application. The following video clip (hebrew) shows how to define a new exception type. More video clips that explain fundamental topics in C# can be found at www.CSharpBook.co.il .
Posted by life | 1 comment(s)
תגים:,

Changing Names Through Refactoring in Visual Studio

Using the visual studio we can easily rename methods, classes and variables. The refactoring capability supported by visual studio will automatically change each and every occurrence of the name we chose to change. The following video clip (hebrew) explains how can we use refactoring for renaming variables, methods and classes in our code. More video clips about other fundamental topics in C# can be found at www.CSharpBook.co.il .
Posted by life | with no comments
תגים:,

Remarks in C#

Writing code it is highly important to include remarks. Those remarks will be useful especially to other developers that will be asked to maintain our code. The following short video clip (hebrew) explains how to include remarks of a special type, so that later when using our code these remarks will be popped up within the visual studio. More video clips about other fundamental topics in C# can be found at www.CSharpBook.co.il .
Posted by life | with no comments
תגים:,

Implementing The Quick Sort Algorithm in C#

The quick sort algorithm is one of the more difficult sorting algorithms. The following clip (hebrew) explains how does the quick sort work and shows it through a short code sample written in C#. More video clips about other fundamental topics in C# can be found at www.CSharpBook.co.il .
Posted by life | with no comments
תגים:, ,

Implementing The 'Insert Sort' Algorithm in C#

Although implementing the sorting algorithm by ourselves is usually not a good practice (using available sorting implementation the .NET framework includes is usually the preferred alternative) knowing the various available sorting algorithms is always a good practice for our mind. The following video clip (hebrew) explains the 'insert sort' algorithm. More video clips that explain other fundamental topics in C# are available at www.CSharpBook.co.il .
Posted by life | with no comments

The Array.Sort Method in C#

The Array.Sort static method allows us to sort an array we have in our code. The precondition for calling this method is having each and every object (in our array) instantiated from a class that implements the IComparable interface. The following video clip (hebrew) explains how should we use this method. More video clips (hebrew) can be found at www.CSharpBook.co.il .
Posted by life | with no comments
תגים:, ,

The Array.CreateInstance Method in C#

Using the Array.CreateInstance static method we can dynamically create new arrays during the execution of our code. The advantage of using this method is the possibility to call it in our code while specifying the type of the new created array during runtime. This way we can develop applications that create new arrays of a type that will be selected during the execution of the code. The following video clip (hebrew) shows how to use this method. More video clips (hebrew) about fundamental topics...
Posted by life | with no comments
תגים:,

Preprocessor Commands in C#

Similarly to C\C++, the C# programming language allows us to use various commands through which we can influence the compiler work. The following video clip (hebrew) shows how to use these preprocessor commands in order to instruct the compiler to include/exclude specific code segments. More video clips that explain other basic topics in C# can be found at www.CSharpBook.co.il
Posted by life | 1 comment(s)

C# Development Using The Command Line

When developing code in C# we can compile and execute our code through the command line directly. The following video clip (hebrew) explains how to do it. More video clips that explain fundamental topics in C# can be found at www.CSharpBook.co.il .
Posted by life | with no comments
תגים:,

The var Keyword in C#

When defining a variable in C# we can avoid specifying its type. We can use the 'var' keyword instead. Doing so, the variable will be set with a specific type when assigned with its first value. The following video clip (hebrew) explains that. More video clips that explain other fundamental topics in C# can be found at www.CSharpBook.co.il .
Posted by life | 1 comment(s)
תגים:,

The Barrier Class

Using the Barrier class we can pause threads till their total number reaches the predefined number we specified when instantiating the Barrier class. The following video clip explains how should we use this class. You can find more video clips and more helpful learning resources at www.abelski.com and at www.CSharpBook.co.il .
Posted by life | with no comments
תגים:, ,

Constants in C#

The C# programming language allows us to define variables and set them as constants, so that it won't be possible to assign them with a new value. The following video clip (hebrew) explains how to create constants in C#. More video clips about other fundamental topics in C# can be found at www.CSharpBook.co.il .
Posted by life | with no comments
תגים:,
More Posts Next page »