Created
July 28, 2011 03:36
-
-
Save mgroves/1110922 to your computer and use it in GitHub Desktop.
friend
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ApiA.cs | |
using PostSharp.Constraints; | |
namespace PostsharpArchitecturalConstraints.API.NamespaceA | |
{ | |
[Friend] | |
internal class ApiA | |
{ | |
public string GetFriendsName() | |
{ | |
return "Mr. Friendly"; | |
} | |
} | |
} | |
// ApiB.cs | |
using PostsharpArchitecturalConstraints.API.NamespaceA; | |
namespace PostsharpArchitecturalConstraints.API.NamespaceB | |
{ | |
public class ApiB | |
{ | |
public string GetFriendsName() | |
{ | |
var a = new ApiA(); | |
return a.GetFriendsName(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment