exercism / v3

The work-in-progress project for developing v3 tracks
https://v3.exercism.io
Other
170 stars 163 forks source link

[C#] Implement new Concept Exercise: explicit casts #1650

Closed mikedamay closed 4 years ago

mikedamay commented 4 years ago

This issue describes how to implement the explicit-cast concept exercise for the C# track.

Getting started

Please please please read the docs before starting. Posting PRs without reading these docs will be a lot more frustrating for you during the review cycle, and exhaust Exercism's maintainers' time. So, before diving into the implementation, please read up on the following documents:

Please also watch the following video:

Goal

The goal of this exercise is to teach the student how to use time in C#.

Learning objectives

Out of scope

Concepts

Prerequisites

Other prerequisites will depend on the story.

Resources to refer to

Hints

This article describes how to use the as operator to down cast a reference type. This article describes how to use the is operator as a guard when casting

After

This article describes how to use the as operator to down cast a reference type. This article describes how to use the is operator as a guard when casting This article describes use of the old C style cast expression.

Representer

This exercise does not require any specific representation logic to be added to the representer.

Analyzer

A check that the is guard is applied as appropriate can be checked by the analyzer.

Implementing

To implement this exercise, please follow these instructions.

Help

If you have any questions while implementing the exercise, please post the questions as comments in this issue.

mikedamay commented 4 years ago

Duplicate of #1142.