Пример #1
0
        /// <inheritdoc />
        public override CodeLocation GetCodeLocation()
        {
            return(codeLocationMemoizer.Memoize(() =>
            {
                CodeLocation
                location = ReflectionPolicy.GetMemberSourceLocation(this);
                if (location == CodeLocation.Unknown && declaringType != null)
                {
                    location = DeclaringType.GetCodeLocation();
                    if (location != CodeLocation.Unknown)
                    {
                        location = new CodeLocation(location.Path, 0, 0);
                    }
                }

                return location;
            }));
        }
Пример #2
0
 public override CodeLocation GetCodeLocation()
 {
     return(DeclaringType.GetCodeLocation());
 }