首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > C# > nroles

nroles

  • 资源大小:303.94 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签:

资 源 简 介

Moved to github: https://github.com/jordao76/nroles NRoles NRoles is an experiment with roles in C#. Roles, very similar to traits, are high level constructs that promote better code reuse through easier composition. NRoles is a post-compiler created with Mono.Cecil that transforms an assembly to enable roles and compositions. Synopsis Grab the latest NRoles binaries, then reference the NRoles.dll assembly and create some roles and compositions: ``` using NRoles; namespace Devices { public class RSwitchable : Role { private bool on = false; public void TurnOn() { on = true; } public void TurnOff() { on = false; } public bool IsOn { get { return on; } } public bool IsOff { get { return !on; } } } public class RTunable : Role { public int Channel { get; private set; } public voi

文 件 列 表

nroles-v0.1.8-bin
LICENSE.txt
Mono.Cecil.dll
Mono.Cecil.Pdb.dll
Mono.Cecil.Rocks.dll
NDesk.Options.dll
NRoles.dll
NRoles.Engine.dll
NRoles.Engine.pdb
NRoles.pdb
nutate.exe
nutate.exe.config
nutate.pdb

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.215195s