This post is by a banned member (Suspect) - Unhide
In C# Integers are immutable, therefore simply checking the difference between two values after a minute wouldnt suffice, Although it can be done easily by making an Integer that is Mutable.
Code: Classes Needed: Code: Code: using System.Threading.Thread; will also be needed. You're Welcome.
This post is by a banned member (Suspect) - Unhide
(10 May, 2020 - 10:24 PM)SioVer Wrote: Show More This is C#. MutableInteger is the class name basically in C# Integers are Immutable. What does Immutable mean? Well it means that you cannot store the same Value independently from the same changing variable value, Therefore you need to make it Mutable to be able to store a value at one point so we can come back to it later. You will have to do more research on Immutable and Mutable Types in C# if you want to have a more broad spectrum I am just posting the solution for your CPM Function. "=>" are called Lambda Expressions. these are used to make the code more readable I use them wherever I can and I recommend you do the same. Clean precise code > Spaghetti messy code all day long. (10 May, 2020 - 12:41 AM)igv34673AR Wrote: Show More Yes Please make use of the quote feature of the forum infuture, so people can see who you are talking to Thanks. PM me or Telegram me I am most active on Telegram. |
Create an account or sign in to comment | ||
You need to be a member in order to leave a comment | ||
Create an account
Sign up for a new account in our community. It's easy!
|
or |
Sign in
Already have an account? Sign in here.
|
Users browsing this thread: 1 Guest(s)