コード例 #1
0
 /// <summary>
 /// Should we walk through the member for all children?
 /// </summary>
 private static bool ShouldWalk(IReachableContext context, MemberReference member)
 {
     TypeReference typeRef = member as TypeReference;
     if (typeRef == null) { return true; }
     if (typeRef is GenericParameter) { return true; }
     if (typeRef is TypeSpecification) { return true; }
     return context.Contains(typeRef);
 }
コード例 #2
0
        /// <summary>
        /// Should we walk through the member for all children?
        /// </summary>
        private static bool ShouldWalk(IReachableContext context, AbstractReference member)
        {
            var typeRef = member as TypeReference;

            if (typeRef == null)
            {
                return(true);
            }
            return(context.Contains(typeRef));
        }
コード例 #3
0
        /// <summary>
        /// Should we walk through the member for all children?
        /// </summary>
        private static bool ShouldWalk(IReachableContext context, MemberReference member)
        {
            TypeReference typeRef = member as TypeReference;

            if (typeRef == null)
            {
                return(true);
            }
            if (typeRef is GenericParameter)
            {
                return(true);
            }
            if (typeRef is TypeSpecification)
            {
                return(true);
            }
            return(context.Contains(typeRef));
        }
コード例 #4
0
ファイル: AbstractReference.cs プロジェクト: Xtremrules/dot42
 /// <summary>
 /// Should we walk through the member for all children?
 /// </summary>
 private static bool ShouldWalk(IReachableContext context, AbstractReference member)
 {
     var typeRef = member as TypeReference;
     if (typeRef == null) { return true; }
     return context.Contains(typeRef);
 }