Sha256: 3191c6a8acb69220269e8d46db856a50d3fadb72050de7464bd4ccf58d27de6b

Contents?: true

Size: 388 Bytes

Versions: 230

Compression:

Stored size: 388 Bytes

Contents

using System.Collections.Generic;
using System.Linq;

public class Complement
{
    private static readonly Dictionary<char, char> DnaToRna = new Dictionary<char, char>
        {
            { 'G', 'C' }, { 'C', 'G' }, { 'T', 'A' }, { 'A', 'U' }
        };

    public static string OfDna(string nucleotide)
    {
        return string.Concat(nucleotide.Select(x => DnaToRna[x]));
    }
}

Version data entries

230 entries across 230 versions & 1 rubygems

Version Path
trackler-2.0.6.14 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.0.6.13 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.0.6.12 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.0.6.11 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.0.6.10 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.0.6.9 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.0.6.8 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.0.6.7 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.0.6.6 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.0.6.5 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.0.6.4 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.0.6.3 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.0.6.2 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.0.6.1 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.0.6.0 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.0.5.18 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.0.5.17 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.0.5.16 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.0.5.15 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.0.5.14 tracks/csharp/exercises/rna-transcription/Example.cs