VB/C# Code Converter This online code conversion tool powered by open source NRefactory library. NRefactory is a powerful C# to VB and VB to C# conversion. Convert.NET is an integrated, powerful, multi-purpose conversion and developer tool. Features: C# to VB and vice-versa, LINQ tester, Encryption/Decryption, Regular Expression tester, Base64 Encoding/Decoding and Full-text translation.
Hi,
I'm trying to translate a class to c# from vb6 (see C# code below). It fails to Build in Visual Studio, giving me 'class used as type' error to relation to m_Dept. This assignment worked in VB6 and in VB.net but I want to rewrite the class in C#. How can I assigned another class object as property of class Employee?
(Class Department is included as a file in the same VS Solution as class Employee. It compiles without issues)
Thanks for Answers!
![Convert vb6 to c# .net online Convert vb6 to c# .net online](https://www.codeproject.com/KB/macros/SolutionConverter/SolutionConverter.png)
- 2 Contributors
- forum1 Reply
- 44 Views
- 9 Hours Discussion Span
- commentLatest Postby thines01
I don't see where m_Dept ior m_dept s defined.
...remember, C# is case-sensitive.