0
What does . mean in c sharp?
How do I use it? what is it used for and some examples would be amazing :) thanks
2 odpowiedzi
0
Microsoft docs are a good source to get information about C# along with other .NET languages:
https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/member-access-operator
0
The dot operator (.) is used for member access. The dot operator specifies a member of a type or namespace. For example, the dot operator is used to access specific methods within the .NET Framework class libraries.
Example :
Class Exam {
public int a;
}
void string Main(){
Exam ple = new Exam();
ple.a = 8;
Console.WriteLine(ple.a);
For more information:
https://stackoverflow.com/questions/24891371/about-the-dot-operator-of-c-sharp