1618402260
There are occasionally circumstances in which we need to know data about C## objects, rather than just the object’s data. C## provides us with two techniques that allow us to do this: attributes which store the data about elements, and reflection which allows us to access information about elements.
#c# in simple terms
1618364160
A few posts back, we talked about Arrays and Collections, and how easy they were to deal with.
In this post, we’ll talk about a feature of C## that allows us developers to iterate over many different kinds of collections and return elements from them one-by-one. Let’s learn about iterators!
#c# in simple terms #c# #c #c++
1618356600
We have now come to the part in the C## in Simple Terms series where we can explore some cool but little-used C## features. Among these is the ability to access values in a class instance in the same way we access array values; we do this using a C## feature called indexers.
So, let’s build some indexers!
#c# in simple terms #c# #c #c++
1618390389
We have now come to the part in the C## in Simple Terms series where we can explore some cool but little-used C## features. Among these is the ability to access values in a class instance in the same way we access array values; we do this using a C## feature called indexers.
So, let’s build some indexers!
#c# in simple terms #c++ #c
1618454152
Now that we know about primitive types, basic class concepts, and interfaces, we can discuss ways that C## programs can manipulate groups of objects. Let’s dive into learning about arrays and collections!
An array is a collection of objects, each of which is of the same type. Items in an array are called elements. We declare an array by specifying the type of the elements in it:
#c# in simple terms #c++ #c
1618409700
Let’s continue our C## In Simple Terms series by giving an introduction to one of the surprisingly complicated topics in the programming world: dates and times.
This post is an introduction to the wide world of dates and times in C## and .NET. We are only going to cover a few of the basics, such as the DateTime
and TimeSpan
structs and the TimeZoneInfo
class. There is much, much more that can be done than can be reasonably covered in a blog post. If you want some idea of the scope of things that can be done with dates and times in C#, check out the Microsoft official documentation.
#c# in simple terms #c++ #c