Exemplo n.º 1
0
        internal NonVirtualDispatchFact GetNonVirtualDispatchFact(IMethodDefinition methodDispatchedUpon)
        {
            NonVirtualDispatchFact result;

            if (!nonVirtualDispatchFactsByMethod.TryGetValue(methodDispatchedUpon, out result))
            {
                result = new NonVirtualDispatchFact(this)
                {
                    DispatchMethod = methodDispatchedUpon
                };

                nonVirtualDispatchFactsByMethod[methodDispatchedUpon] = result;
            }

            return(result);
        }
Exemplo n.º 2
0
 public MethodReachedBecauseDispatchedNonVirtuallyReason(AnalysisReasons analysisReasons, IMethodDefinition methodDispatchedUpon)
     : base(analysisReasons)
 {
     nonVirtualDispatchFact = analysisReasons.GetNonVirtualDispatchFact(methodDispatchedUpon);
 }