namespace System.Runtime.Serialization
{
+ [System.Runtime.InteropServices.ComVisibleAttribute (true)]
public sealed class FormatterServices
{
private const BindingFlags fieldFlags = BindingFlags.Public |
foreach (FieldInfo field in fs)
if (!(field.IsNotSerialized)) {
MonoField mf = field as MonoField;
- if (mf != null) {
- string fname = (reflectedType != type && !mf.IsPublic) ? type.Name + "+" + mf.Name : mf.Name;
+ if (mf != null && reflectedType != type && !mf.IsPublic) {
+ string fname = type.Name + "+" + mf.Name;
fields.Add (mf.Clone (fname));
}
else