Skip to content

Update cs0433.md #35780

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions docs/csharp/language-reference/compiler-messages/cs0433.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
description: "Compiler Error CS0433"
title: "Compiler Error CS0433"
ms.date: 07/20/2015
ms.date: 06/14/2023
f1_keywords:
- "CS0433"
helpviewer_keywords:
Expand Down Expand Up @@ -30,7 +30,7 @@ This error can also occur if:
// or compile with: /target:library
namespace TypeBindConflicts
{
public class AggPubImpAggPubImp {}
public class AggPubImpAggPubImp { }
}
```

Expand All @@ -41,7 +41,7 @@ namespace TypeBindConflicts
// or compile with: /target:library
namespace TypeBindConflicts
{
public class AggPubImpAggPubImp {}
public class AggPubImpAggPubImp { }
}
```

Expand All @@ -56,7 +56,8 @@ namespace TypeBindConflicts
```csharp
// CS0433_3.cs in CS0433_3.csproj
// or compile with: /reference:cs0433_1.dll /reference:cs0433_2.dll
using TypeBindConflicts;
using TypeBindConflicts;

public class Test
{
public static void Main()
Expand All @@ -71,7 +72,8 @@ public class Test
```xml
<!-- CS0433_4.csproj -->
<ProjectReference Include="..\CS0433_1\CS0433_1.csproj">
<Aliases>CustomTypes</Aliases>
<Aliases>CustomTypes</Aliases>
</ProjectReference>
<ProjectReference Include="..\CS0433_2\CS0433_2.csproj" />
```

Expand All @@ -85,8 +87,12 @@ public class Test
{
public static void Main()
{
AggPubImpAggPubImp n6 = new AggPubImpAggPubImp(); // AggPubImpAggPubImp taken from CS0433_1.dll
CustomTypes.TypeBindConflicts.AggPubImpAggPubImp n7 = new CustomTypes.TypeBindConflicts.AggPubImpAggPubImp(); // AggPubImpAggPubImp taken from CS0433_2.dll
// AggPubImpAggPubImp taken from CS0433_1.dll
AggPubImpAggPubImp n6 = new AggPubImpAggPubImp();

// AggPubImpAggPubImp taken from CS0433_2.dll
CustomTypes.TypeBindConflicts.AggPubImpAggPubImp n7 =
new CustomTypes.TypeBindConflicts.AggPubImpAggPubImp();
}
}
```