VB.NET创建类,什么是公共类MyClass(类型)?

时间:2022-11-27 17:05:45

I'm still learning ASP.NET and I often see code like this throughout parts of our framework:

我还在学习ASP.NET,我经常在框架的各个部分看到这样的代码:

Public MustInherit Class DBFileManager(Of F As IDBFile, FC As IDBFileContent, FT As IDBFileThumb)

Can anybody tell me what this means? Much thanks!

谁能告诉我这意味着什么?非常感谢!

2 个解决方案

#1


1  

Its a generic. That means a DBFileManager can be created that acts on 3 classes that implement the 3 named Interfaces

它是通用的。这意味着可以创建一个DBFileManager,它对3个实现3个命名接口的类起作用

see http://msdn.microsoft.com/en-us/library/w256ka79(VS.80).aspx for more information

有关更多信息,请参阅http://msdn.microsoft.com/en-us/library/w256ka79(VS.80).aspx

#2


1  

To build on what @Jimmy said: It is also an Abstract Class, which means it acts as a base class - you can't use it directly, you must sub class it to use. That subclass must implement the 3 types in the class header.

构建@Jimmy所说的:它也是一个抽象类,这意味着它充当基类 - 你不能直接使用它,你必须对它进行子类化才能使用它。该子类必须在类头中实现3种类型。

#1


1  

Its a generic. That means a DBFileManager can be created that acts on 3 classes that implement the 3 named Interfaces

它是通用的。这意味着可以创建一个DBFileManager,它对3个实现3个命名接口的类起作用

see http://msdn.microsoft.com/en-us/library/w256ka79(VS.80).aspx for more information

有关更多信息,请参阅http://msdn.microsoft.com/en-us/library/w256ka79(VS.80).aspx

#2


1  

To build on what @Jimmy said: It is also an Abstract Class, which means it acts as a base class - you can't use it directly, you must sub class it to use. That subclass must implement the 3 types in the class header.

构建@Jimmy所说的:它也是一个抽象类,这意味着它充当基类 - 你不能直接使用它,你必须对它进行子类化才能使用它。该子类必须在类头中实现3种类型。