code_junkie

Is there a practical example of how they have used attributes on method parameters in .NET?

Nov 11th, 2011
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. public class ShellController : ControllerBase, IShellController
  2. {
  3. public ShellController([StateDependency("State")] StateValue<ShuttleState> state,
  4. [ServiceDependency] IHttpContextLocatorService contextLocator,
  5. [ServiceDependency] IAuthorizationService authService)
  6. : base(state, contextLocator, authService)
  7. {
  8. // code goes here
  9. }
  10. }
Add Comment
Please, Sign In to add comment