Example #1
0
        Ref <Types> ValueToRef(TypeReference typeRef)
        {
            var def = new ValueSlot <Types>();

            def.Value = typeRef;
            return(def.GetRef());
        }
Example #2
0
        Ref <Methods> ValueToRef(MethodReference methodRef)
        {
            var def = new ValueSlot <Methods>();

            def.Value = methodRef;
            return(def.GetRef());
        }
Example #3
0
        public Ref <Methods> Import(SR.MethodBase method)
        {
            var methodRef = container.Import(method);
            var def       = new ValueSlot <Methods> {
                Value = methodRef
            };

            return(def.GetRef());
        }
        public Ref <ResolutionScopes> FromModuleName(Name1 name1)
        {
            var scope = GetScopeByName(name1, true);
            var def   = new ValueSlot <ResolutionScopes> {
                Value = scope
            };

            return(def.GetRef());
        }
        public Ref <ResolutionScopes> FromAssemblyName(Name1 name1)
        {
            var scope = GetScopeByName(name1, false);
            var def   = new ValueSlot <ResolutionScopes> {
                Value = scope
            };

            return(def.GetRef());
        }
 public Ref<ResolutionScopes> FromModuleName(Name1 name1)
 {
     var scope = GetScopeByName(name1, true);
     var def = new ValueSlot<ResolutionScopes> { Value = scope };
     return def.GetRef();
 }
 public Ref<ResolutionScopes> FromAssemblyName(Name1 name1)
 {
     var scope = GetScopeByName(name1, false);
     var def = new ValueSlot<ResolutionScopes> { Value = scope };
     return def.GetRef();
 }
Example #8
0
 Ref<Types> ValueToRef(TypeReference typeRef)
 {
     var def = new ValueSlot<Types>();
     def.Value = typeRef;
     return def.GetRef();
 }