예제 #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);
        }
예제 #2
0
 public MethodReachedBecauseDispatchedNonVirtuallyReason(AnalysisReasons analysisReasons, IMethodDefinition methodDispatchedUpon)
     : base(analysisReasons)
 {
     nonVirtualDispatchFact = analysisReasons.GetNonVirtualDispatchFact(methodDispatchedUpon);
 }