コード例 #1
0
        private IEnumerable <IDiffItem> CheckVisibility(MethodDefinition oldMethod, MethodDefinition newMethod)
        {
            int result = VisibilityComparer.CompareVisibilityDefinitions(oldMethod, newMethod);

            if (result != 0)
            {
                yield return(new VisibilityChangedDiffItem(result < 0));
            }
        }
コード例 #2
0
        private IEnumerable <IDiffItem> CheckVisibility(TypeDefinition oldType, TypeDefinition newType)
        {
            int result = VisibilityComparer.CompareTypes(oldType, newType);

            if (result != 0)
            {
                yield return(new VisibilityChangedDiffItem(result < 0));
            }
        }