OUR BLOG

Company News and Updates

Every week we share out expertise on effective strategies and technics to help you reach customers and prospects across the entire web.

Chapter110:Timers

Section110.1:MultithreadedTimersSystem.Threading.Timer-Simplestmultithreadedtimer.Containstwomethodsandoneconstructor. Example: A timer calls the DataWrite method, which writes "multithread executed…" after five seconds have…
Learn More

Chapter109:Stream

Section109.1:UsingStreams Astreamisanobjectthatprovidesalow-levelmeanstotransferdata.Theythemselvesdonotactasdata containers. Thedatathatwedealwithisinformofbytearray(byte[]).Thefunctionsforreadingandwritingareallbyte orientated, e.g. WriteByte(). Therearenofunctionsfordealingwithintegers,stringsetc.Thismakesthestreamverygeneral-purpose,butless simpletoworkwithif,say,youjustwanttotransfertext.Streamscanbeparticularlyveryhelpfulwhenyouare dealing with large amount of data. WewillneedtousedifferenttypeofStreambasedwhereitneedstobewritten/readfrom(i.e.thebackingstore).…
Learn More

Chapter108:CheckedandUnchecked

Section108.1:CheckedandUnchecked C#statementsexecutesineithercheckedoruncheckedcontext.Inacheckedcontext,arithmeticoverflowraisesan exception. In an unchecked context, arithmetic overflow is ignored and the result is truncated.…
Learn More

Chapter107:Indexer

Section107.1:Asimpleindexer classFoo { privatestring[]cities=new[]{"Paris","London","Berlin"}; publicstringthis[intindex] { get{ returncities[index]; } set{ cities[index]=value; } } } Usage: varfoo=newFoo();…
Learn More

Chapter106:Immutability

Section106.1:System.Stringclass InC#(and.NET)astringisrepresentedbyclassSystem.String.Thestringkeywordisanaliasforthisclass. The System.String class is immutable, i.e once created its state cannot be altered. SoalltheoperationsyouperformonastringlikeSubstring,Remove,Replace,concatenationusing+operatoretc…
Learn More

Chapter105:Polymorphism

Section105.1:TypesofPolymorphism Polymorphism means that a operation can also be applied to values of some other types.…
Learn More

Get new blog posts by email: