Skip to content

lusinekh/IndexerExamples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Fibonachi. Example of using indexer

Programme consists of Fibonacci class library: here is determines Fib1 function, which count imported number"s fibonacci. There is determine an indexer for Fibonacci function in clas.

namespace Testfibonaci
{
    class Program
    {
        static void Main(string[] args)
        {
            fib f = new fib();
            Console.WriteLine("f4=" + f[4]);
            Console.WriteLine("f5=" + f[5]);

        }
    }
}

The result in Console window shown in bellow.

f4=3 f5=5

About

Simple fibonachi class library in C# 6.0, example of using indexer.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages