只有一个.cs文件将其类公开为.tlb文件。 [英] Only one .cs file exposes its classes into .tlb file.

查看:74
本文介绍了只有一个.cs文件将其类公开为.tlb文件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨〜


我有两个.cs文件:


Class1.cs

展开 < span class =codeDivider> | 选择 | Wrap | Line数字

解决方案


嗨〜


我有两个.cs文件:


Class1.cs

展开 | 选择 | Wrap | < span class =codeLinkonclick =LineNumbers(this);>行号



因为实际上没有2级?

你已经在两个文件中两次定义了3级!!


如果它是一个错字...我还没触及你想要的东西做,祝你好运



这是一个错字。


以下是更正后的代码。


Class2.cs

展开 | 选择 | Wrap | < /跨度> <温泉n class =codeLinkonclick =LineNumbers(this);>行号



这是一个错字。


以下是更正后的代码。


Class2.cs

展开 | 选择 | Wrap | 行号

Hi~

I have two .cs files:

Class1.cs

Expand|Select|Wrap|Line Numbers

解决方案

Hi~

I have two .cs files:

Class1.cs

Expand|Select|Wrap|Line Numbers


because there is actually no class 2?
you have defined class 3 twice in both the files!!

if its a typo...i havent touched what you are trying to do, good luck

It''s a typo.

The below is the corrected code.

Class2.cs

Expand|Select|Wrap|Line Numbers


It''s a typo.

The below is the corrected code.

Class2.cs

Expand|Select|Wrap|Line Numbers


这篇关于只有一个.cs文件将其类公开为.tlb文件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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