Skip to main content

Robotics 4 .NET

Go Search
Home
Documents and Lists
Create
Site Settings
Help
  
Robotics 4 .NET > Software > ACS  

Web Part Page Title Bar image
Annotated C#
[a]C#

 Announcements

There are currently no active announcements.

Introduction

Annotated C# ([a]C#) is a small extension to the C# language. The language allows to annotate code inside methods with custom attributes. A program at runtime can rely on the runtime of the language for retrieving the annotations from assembly metadata. Runtime also support code manipulation of annotated code fragments.

Notes

[a]C# still implements the C# 1.0 syntax. We are working to implement the new syntax of version 2.0.

Why is in Robotics4.NET?

The language was designed to allow code annotation. We believe that reflection is a useful tool in robot programming. In particular devices (perhaps roblets) may declare what they do by simply annotating the code using custom attributes that indicates a coarse grain semantics of the code. This approach is being referred as "Attribute Oriented Programming" and is supported by other tools out there (for instance X-Doclet ). Code manipulation can also be useful in programming software capable to adapt the behavior to the environment.

Example

The following code shows an example of code annotation. It shows how we can encode semantics information about code, in this case we give hints about how to execute in parallel the body of a method.
Show

The following code shows how easy is to retrieve the information associated with a method.
Show

 Issues

There are no items to show in this view of the "ACSIssues" list.

 Links

  [a]C# Web Site

 Events

There are currently no upcoming events.

 Tasks

There are no items to show in this view of the "ACSTasks" list.