en:csharp
Diferenças
Aqui você vê as diferenças entre duas revisões dessa página.
Próxima revisão | Revisão anterior | ||
en:csharp [2025/07/18 21:26] – criada admin | en:csharp [2025/07/18 21:30] (atual) – [From rEduc] admin | ||
---|---|---|---|
Linha 1: | Linha 1: | ||
====== C# ====== | ====== C# ====== | ||
- | C# (pronounced as C-Sharp) is the language that was used to build the simulator, using the Unity platform. It is the language injected into your robot when starting a [[Routine]], | + | C# (pronounced as C-Sharp) is the language that was used to build the simulator, using the Unity platform. It is the language injected into your robot when starting a [[:Routine]], regardless of which language you used to program ([[BlockEduc]] is converted to [[rEduc]] which is finally converted to C#). |
Programming in C# brings some **BIG** differences from [[rEduc]], and can allow the user to use very advanced programming methods, but the learning curve is more difficult. | Programming in C# brings some **BIG** differences from [[rEduc]], and can allow the user to use very advanced programming methods, but the learning curve is more difficult. | ||
- | > **Tip:** One of the most efficient ways to learn C# for the simulator is by building programs in rEduc and converting them to this language for reference. It is always possible to view rEduc commands in C# by clicking [[https:// | + | > **Tip:** One of the most efficient ways to learn C# for the simulator is by building programs in rEduc and converting them to this language for reference. It is always possible to view rEduc commands in C# by clicking [[https:// |
Programming in C# in sBotics is done through **Asynchronous Tasks** (async Tasks), allowing the user to pause task execution through the '' | Programming in C# in sBotics is done through **Asynchronous Tasks** (async Tasks), allowing the user to pause task execution through the '' | ||
Linha 18: | Linha 18: | ||
</ | </ | ||
- | Every C# sBotics program needs to have a '' | + | Every C# sBotics program needs to have a '' |
<code csharp> | <code csharp> | ||
Linha 28: | Linha 28: | ||
==== Important Warning about Busy-Waiting ==== | ==== Important Warning about Busy-Waiting ==== | ||
- | As already mentioned on the [[Programming]] page, the simulator and your code run on the same " | + | As already mentioned on the [[:Programming]] page, the simulator and your code run on the same " |
**Example: | **Example: | ||
Linha 401: | Linha 401: | ||
There it is possible to understand exactly how the sensors work and know all the methods, classes, properties, enums, namespaces, etc. that the user has access to. | There it is possible to understand exactly how the sensors work and know all the methods, classes, properties, enums, namespaces, etc. that the user has access to. | ||
==== From rEduc ==== | ==== From rEduc ==== | ||
- | It is also possible to see the " | + | It is also possible to see the " |
------- | ------- |
en/csharp.1752873967.txt.gz · Última modificação: 2025/07/18 21:26 por admin