Я использую Vim Latex Suite, и мне он нравится. Но есть некоторые моменты в который не делает то, что я хочу.
Из файла .vim / compiler / tex.vim
:
" Depending on the 'ignore-level', the following kinds of messages are
" ignored. An ignore level of 3 for instance means that messages 1-3 will be
" ignored. By default, the ignore level is set to 4.
"
" 1. LaTeX Warning: Specifier 'h' changed to 't'.
" This errors occurs when TeX is not able to correctly place a floating
" object at a specified location, because of which it defaulted to the
" top of the page.
" 2. LaTeX Warning: Underfull box ...
" 3. LaTeX Warning: Overfull box ...
" both these warnings (very common) are due to \hbox settings not being
" satisfied nicely.
" 4. LaTeX Warning: You have requested ...,
" This warning occurs in slitex when using the xypic package.
" 5. Missing number error:
" Usually, when the name of an included eps file is spelled incorrectly,
" then the \bb-error message is accompanied by a bunch of "missing
" number, treated as zero" error messages. This level ignores these
" warnings.
" NOTE: number 5 is actually a latex error, not a warning!
В этом списке ничего не упоминается об отсутствующих пакетах.
Из-за этой проблемы здесь я пытаюсь написать собственный JsonConverter, который обрабатывает случаи, когда вы подклассифицируете список или коллекцию, а затем добавляете к ним дополнительные свойства. Таким образом, можно было бы игнорировать все свойства базового класса и сериализовать только те, которые находятся в определенном классе. (Технически это не сработает, потому что если вы подклассифицируете этот подкласс, вы нарушите сериализацию, но это заставило меня задуматься ...)
Возможно ли это через отражение (хорошо, я знаю, что ответ - «да», потому что Reflector делает именно это это, но я не знаю, как) получить только те члены, которые определены в самом классе, а не те, которые были унаследованы? Например ...
public class MyBaseClass
{
public string BaseProp1 { get; set; }
public string BaseProp2 { get; set; }
}
public class MySubClass : MyBaseClass
{
public string SubProp1 { get; set; }
public string SubProp2 { get; set; }
}
В этом случае, Я хочу поразмышлять о MySubClass
и получить только SubProp1
и SubProp2
, игнорируя BaseProp1
и BaseProp2
. Итак, может быть , как это делается?
M