문제

In one of the requirement (custom performance counters for my application) i am writing Interfaces first, but i am not sure whether i am writing proper name as per Interface guildeline. I used plural and use verb, please verify and suggest

interface ICreateCounters
{
    bool CreateCategories(Categories objCategories) {}
    bool CreateCounters(Counters objCounters){}
}

interface UseCounters
{
    Increment()
}

Please advice?

Is there any existing library available?

도움이 되었습니까?

해결책

Hemant sir,
There are no explicit rules for an interface, but in Microsoft all the interfaces do start with capital letter 'I'.

The name that follows the letter 'I' should start with capital letter and words should describe the meaning and work.

In your case may be use IIncreementalCounter or ICounterOperation instead of UseCounters.

다른 팁

The answer to your second question is :

Microsoft hase performance counter class So if this fits your needs use this

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top