File tree Expand file tree Collapse file tree 6 files changed +44
-0
lines changed
Tests/TestData/MultiFileCharacterization/VBToCSResults
ConvertVbLibraryOnly/VbLibrary Expand file tree Collapse file tree 6 files changed +44
-0
lines changed Original file line number Diff line number Diff line change 11using System ;
22using System . Collections . Generic ;
33using Microsoft . VisualBasic . CompilerServices ;
4+ using VbNetStandardLib ;
45
56namespace VbLibrary
67{
@@ -18,6 +19,10 @@ private static void UseOutParameterInModule()
1819 public static void Main ( )
1920 {
2021 Console . Write ( ( int ) AClass . NestedEnum . First ) ;
22+ AnInterface interfaceInstance = new AnInterfaceImplementation ( ) ;
23+ var classInstance = new AnInterfaceImplementation ( ) ;
24+ Console . WriteLine ( interfaceInstance . AnInterfaceProperty ) ;
25+ Console . WriteLine ( classInstance . APropertyWithDifferentNameThanPropertyFromInterface ) ;
2126 }
2227 }
2328}
Original file line number Diff line number Diff line change 116116 </None >
117117 <None Include =" App.config" />
118118 </ItemGroup >
119+ <ItemGroup >
120+ <ProjectReference Include =" ..\VbNetStandardLib\VbNetStandardLib.vbproj" >
121+ <Project >{fbfbe639-a532-408a-960d-288e05feeb0e}</Project >
122+ <Name >VbNetStandardLib</Name >
123+ </ProjectReference >
124+ </ItemGroup >
119125 <Import Project =" $(MSBuildToolsPath)\Microsoft.CSharp.targets" />
120126</Project >
Original file line number Diff line number Diff line change 11using System ;
22using System . Collections . Generic ;
33using Microsoft . VisualBasic . CompilerServices ;
4+ using VbNetStandardLib ;
45
56namespace VbLibrary
67{
@@ -18,6 +19,10 @@ private static void UseOutParameterInModule()
1819 public static void Main ( )
1920 {
2021 Console . Write ( ( int ) AClass . NestedEnum . First ) ;
22+ AnInterface interfaceInstance = new AnInterfaceImplementation ( ) ;
23+ var classInstance = new AnInterfaceImplementation ( ) ;
24+ Console . WriteLine ( interfaceInstance . AnInterfaceProperty ) ;
25+ Console . WriteLine ( classInstance . AnInterfaceProperty ) ;
2126 }
2227 }
2328}
Original file line number Diff line number Diff line change 116116 </None >
117117 <None Include =" App.config" />
118118 </ItemGroup >
119+ <ItemGroup >
120+ <ProjectReference Include =" ..\VbNetStandardLib\VbNetStandardLib.csproj" >
121+ <Project >{49DF6752-696A-0F7B-1455-E2F06769DFAE}</Project >
122+ <Name >VbNetStandardLib</Name >
123+ </ProjectReference >
124+ </ItemGroup >
119125 <Import Project =" $(MSBuildToolsPath)\Microsoft.CSharp.targets" />
120126</Project >
Original file line number Diff line number Diff line change 1+
2+ namespace VbNetStandardLib
3+ {
4+ public interface AnInterface
5+ {
6+ string AnInterfaceProperty { get ; }
7+ }
8+ }
Original file line number Diff line number Diff line change 1+
2+ namespace VbNetStandardLib
3+ {
4+ public class AnInterfaceImplementation : AnInterface
5+ {
6+ public string AnInterfaceProperty
7+ {
8+ get
9+ {
10+ return "Const" ;
11+ }
12+ }
13+ }
14+ }
You can’t perform that action at this time.
0 commit comments