当前位置: 首页>>代码示例>>C#>>正文


C# RubyMemberFlags类代码示例

本文整理汇总了C#中RubyMemberFlags的典型用法代码示例。如果您正苦于以下问题:C# RubyMemberFlags类的具体用法?C# RubyMemberFlags怎么用?C# RubyMemberFlags使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


RubyMemberFlags类属于命名空间,在下文中一共展示了RubyMemberFlags类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: RubyFieldInfo

 public RubyFieldInfo(FieldInfo/*!*/ fieldInfo, RubyMemberFlags flags, RubyModule/*!*/ declaringModule, bool isSetter, bool isDetached)
     : base(flags, declaringModule) {
     Assert.NotNull(fieldInfo, declaringModule);
     _fieldInfo = fieldInfo;
     _isSetter = isSetter;
     _isDetached = isDetached;
 }
开发者ID:Hank923,项目名称:ironruby,代码行数:7,代码来源:RubyFieldInfo.cs

示例2: RubyAttributeAccessorInfo

 protected RubyAttributeAccessorInfo(RubyMemberFlags flags, RubyModule/*!*/ declaringModule, string/*!*/ variableName)
     : base(flags, declaringModule)
 {
     Assert.NotEmpty(variableName);
     Debug.Assert(variableName.StartsWith("@"));
     _instanceVariableName = variableName;
 }
开发者ID:TerabyteX,项目名称:main,代码行数:7,代码来源:RubyAccessorInfo.cs

示例3: RubyLambdaMethodInfo

 internal RubyLambdaMethodInfo(Proc/*!*/ block, string/*!*/ definitionName, RubyMemberFlags flags, RubyModule/*!*/ declaringModule) 
     : base(flags, declaringModule) {
     Assert.NotNull(block, definitionName, declaringModule);
     _lambda = block.ToLambda(this);
     _definitionName = definitionName;
     _id = Interlocked.Increment(ref _Id);
 }
开发者ID:Jaykul,项目名称:IronLangs,代码行数:7,代码来源:RubyLambdaMethodInfo.cs

示例4: RubyMethodGroupBase

 protected RubyMethodGroupBase(OverloadInfo/*!*/[] methods, RubyMemberFlags flags, RubyModule/*!*/ declaringModule)
     : base(flags, declaringModule)
 {
     if (methods != null) {
         SetMethodBasesNoLock(methods);
     }
 }
开发者ID:TerabyteX,项目名称:main,代码行数:7,代码来源:RubyMethodGroupBase.cs

示例5: RubyMethodGroupInfo

 // copy ctor
 private RubyMethodGroupInfo(RubyMethodGroupInfo/*!*/ info, RubyMemberFlags flags, RubyModule/*!*/ module)
     : base(info.MethodBases, flags, module) {
     _isStatic = info._isStatic;
     _hasVirtuals = info._hasVirtuals;
     _staticDispatchMethods = info._staticDispatchMethods;
     // Note: overloadOwners and maxCachedOverloadLevel are cleared whenever the group is copied.
 }
开发者ID:teejayvanslyke,项目名称:ironruby,代码行数:8,代码来源:RubyMethodGroupInfo.cs

示例6: RubyLibraryMethodInfo

 /// <summary>
 /// Creates a Ruby method implemented by a method group of CLR methods.
 /// </summary>
 internal RubyLibraryMethodInfo(LibraryOverload/*!*/[]/*!*/ overloads, RubyMemberFlags flags, RubyModule/*!*/ declaringModule)
     : base(null, flags, declaringModule)
 {
     Assert.NotNullItems(overloads);
     Assert.NotEmpty(overloads);
     _overloads = overloads;
 }
开发者ID:TerabyteX,项目名称:main,代码行数:10,代码来源:RubyLibraryMethodInfo.cs

示例7: RubyEventInfo

 public RubyEventInfo(EventTracker/*!*/ tracker, RubyMemberFlags flags, RubyModule/*!*/ declaringModule, bool isDetached)
     : base(flags, declaringModule)
 {
     Assert.NotNull(tracker, declaringModule);
     _tracker = tracker;
     _isDetached = isDetached;
 }
开发者ID:TerabyteX,项目名称:main,代码行数:7,代码来源:RubyEventInfo.cs

示例8: RubyMethodInfo

        // method:
        internal RubyMethodInfo(RubyMethodBody/*!*/ body, RubyScope/*!*/ declaringScope, RubyModule/*!*/ declaringModule, RubyMemberFlags flags)
            : base(flags, declaringModule) {
            Assert.NotNull(body, declaringModule);

            _body = body;
            _declaringScope = declaringScope;
        }
开发者ID:ExpertsInside,项目名称:IronSP,代码行数:8,代码来源:RubyMethodInfo.cs

示例9: RubyMemberInfo

        internal RubyMemberInfo(RubyMemberFlags flags, RubyModule/*!*/ declaringModule)
        {
            Assert.NotNull(declaringModule);
            Debug.Assert(flags != RubyMemberFlags.Invalid);

            _flags = flags;
            _declaringModule = declaringModule;
        }
开发者ID:TerabyteX,项目名称:main,代码行数:8,代码来源:RubyMemberInfo.cs

示例10: RubyMethodGroupInfo

        /// <summary>
        /// Creates a Ruby method implemented by a method group of CLR methods.
        /// </summary>
        internal RubyMethodGroupInfo(Delegate/*!*/[]/*!*/ overloads, RubyMemberFlags flags,  
            RubyModule/*!*/ declaringModule)
            : base(flags, declaringModule) {
            Assert.NotNullItems(overloads);
            Assert.NotNull(declaringModule);
            _overloads = overloads;

            _isClrStatic = false;
            _isRubyMethod = true;
        }
开发者ID:mscottford,项目名称:ironruby,代码行数:13,代码来源:RubyMethodGroupInfo.cs

示例11: RubyMethodInfo

        // method:
        internal RubyMethodInfo(object/*!*/ ast, Delegate/*!*/ method, RubyModule/*!*/ declaringModule, 
            string/*!*/ definitionName, int mandatory, int optional, bool hasUnsplatParameter, RubyMemberFlags flags)
            : base(flags, declaringModule) {
            Assert.NotNull(ast, method, declaringModule, definitionName);

            _ast = ast;
            _method = method;
            _mandatoryParamCount = mandatory;
            _optionalParamCount = optional;
            _hasUnsplatParameter = hasUnsplatParameter;
            _definitionName = definitionName;
        }
开发者ID:tnachen,项目名称:ironruby,代码行数:13,代码来源:RubyMethodInfo.cs

示例12: Copy

 protected internal override RubyMemberInfo/*!*/ Copy(RubyMemberFlags flags, RubyModule/*!*/ module) {
     return new RubyEventInfo(_tracker, flags, module, true);
 }
开发者ID:jxnmaomao,项目名称:ironruby,代码行数:3,代码来源:RubyEventInfo.cs

示例13: Copy

 protected internal override RubyMemberInfo/*!*/ Copy(RubyMemberFlags flags, RubyModule/*!*/ module) {
     return new RubyMethodGroupInfo(this, flags, module);
 }
开发者ID:mscottford,项目名称:ironruby,代码行数:3,代码来源:RubyMethodGroupInfo.cs

示例14: Copy

 protected internal override RubyMemberInfo/*!*/ Copy(RubyMemberFlags flags, RubyModule/*!*/ module) {
     return new RubyAttributeWriterInfo(flags, module, InstanceVariableName);
 }
开发者ID:kevinkeeney,项目名称:ironruby,代码行数:3,代码来源:RubyAccessorInfo.cs

示例15: RubyCustomMethodInfo

 public RubyCustomMethodInfo(RuleGenerator/*!*/ ruleGenerator, RubyMemberFlags flags, RubyModule/*!*/ declaringModule)
     : base(flags, declaringModule)
 {
     Assert.NotNull(ruleGenerator, declaringModule);
     _ruleGenerator = ruleGenerator;
 }
开发者ID:TerabyteX,项目名称:main,代码行数:6,代码来源:RubyCustomMethodInfo.cs


注:本文中的RubyMemberFlags类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。