公约泛型类的文件名 [英] Convention for Filenames of Generic Classes

查看:139
本文介绍了公约泛型类的文件名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望能够一类的通用和常规(非通用)版本来区分。就像在.NET框架组件是与它的几个通用和非通用版本,它的接口和集合类。 (队列,的队列(T)

I want to be able to distinguish between a generic and regular (non-generic) version of a class. Much like the .NET framework does with it's generic and non-generic versions of several of it's interfaces and collection classes. (Queue, Queue(T))

我一般喜欢跟着每个文件一个类的约定(在Java中)。是否有命名包含一个通用类文件的常用约定?我在Windows最感兴趣(NTFS明确),但它似乎是一个好习惯是(至少有一点),便于携带。

I generally like to follow the convention of one class per file (as in Java). Is there a common convention for naming files containing a single generic class? I'm mostly interested in Windows (NTFS specifically) but it seems like a good convention would be (at least a little) portable.

推荐答案

在微软,他们使用 ClassNameOfT.cs

这篇关于公约泛型类的文件名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆