Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/22/10 00:44:01 (14 years ago)
Author:
swagner
Message:

Sorted usings and removed unused usings in entire solution (#1094)

Location:
trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.ProtobufCS/0.9.1/ProtobufCS/src/ProtocolBuffers
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.ProtobufCS/0.9.1/ProtobufCS/src/ProtocolBuffers/Collections/Dictionaries.cs

    r3857 r4068  
    3030// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    3131// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    32 using System;
    3332using System.Collections;
    3433using System.Collections.Generic;
     
    5049        return false;
    5150      }
    52       foreach (KeyValuePair<TKey,TValue> leftEntry in left)
    53       {
     51      foreach (KeyValuePair<TKey, TValue> leftEntry in left) {
    5452        TValue rightValue;
    5553        if (!right.TryGetValue(leftEntry.Key, out rightValue)) {
     
    7270    }
    7371
    74     public static IDictionary<TKey, TValue> AsReadOnly<TKey, TValue> (IDictionary<TKey, TValue> dictionary) {
     72    public static IDictionary<TKey, TValue> AsReadOnly<TKey, TValue>(IDictionary<TKey, TValue> dictionary) {
    7573      return dictionary.IsReadOnly ? dictionary : new ReadOnlyDictionary<TKey, TValue>(dictionary);
    7674    }
  • trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.ProtobufCS/0.9.1/ProtobufCS/src/ProtocolBuffers/Collections/PopsicleList.cs

    r3857 r4068  
    3131// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    3232using System;
     33using System.Collections;
    3334using System.Collections.Generic;
    34 using System.Collections;
    3535
    3636namespace Google.ProtocolBuffers.Collections {
  • trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.ProtobufCS/0.9.1/ProtobufCS/src/ProtocolBuffers/DescriptorProtos/CSharpOptions.cs

    r3857 r4068  
    22
    33using pb = global::Google.ProtocolBuffers;
    4 using pbc = global::Google.ProtocolBuffers.Collections;
    54using pbd = global::Google.ProtocolBuffers.Descriptors;
    6 using scg = global::System.Collections.Generic;
    75namespace Google.ProtocolBuffers.DescriptorProtos {
    8  
     6
    97  public static partial class CSharpOptions {
    10  
     8
    119    #region Extension registration
    1210    public static void RegisterAllExtensions(pb::ExtensionRegistry registry) {
     
    2119    public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions> CSharpFieldOptions;
    2220    #endregion
    23    
     21
    2422    #region Static variables
    2523    internal static pbd::MessageDescriptor internal__static_google_protobuf_CSharpFileOptions__Descriptor;
     
    3331    }
    3432    private static pbd::FileDescriptor descriptor;
    35    
     33
    3634    static CSharpOptions() {
    3735      byte[] descriptorData = global::System.Convert.FromBase64String(
    38           "CiRnb29nbGUvcHJvdG9idWYvY3NoYXJwX29wdGlvbnMucHJvdG8SD2dvb2ds" + 
    39           "ZS5wcm90b2J1ZhogZ29vZ2xlL3Byb3RvYnVmL2Rlc2NyaXB0b3IucHJvdG8i" + 
    40           "zAEKEUNTaGFycEZpbGVPcHRpb25zEhEKCW5hbWVzcGFjZRgBIAEoCRIaChJ1" + 
    41           "bWJyZWxsYV9jbGFzc25hbWUYAiABKAkSHAoOcHVibGljX2NsYXNzZXMYAyAB" + 
    42           "KAg6BHRydWUSFgoObXVsdGlwbGVfZmlsZXMYBCABKAgSFAoMbmVzdF9jbGFz" + 
    43           "c2VzGAUgASgIEhYKDmNvZGVfY29udHJhY3RzGAYgASgIEiQKHGV4cGFuZF9u" + 
    44           "YW1lc3BhY2VfZGlyZWN0b3JpZXMYByABKAgiKwoSQ1NoYXJwRmllbGRPcHRp" + 
    45           "b25zEhUKDXByb3BlcnR5X25hbWUYASABKAk6XgoTY3NoYXJwX2ZpbGVfb3B0" + 
    46           "aW9ucxIcLmdvb2dsZS5wcm90b2J1Zi5GaWxlT3B0aW9ucxjoByABKAsyIi5n" + 
    47           "b29nbGUucHJvdG9idWYuQ1NoYXJwRmlsZU9wdGlvbnM6YQoUY3NoYXJwX2Zp" + 
    48           "ZWxkX29wdGlvbnMSHS5nb29nbGUucHJvdG9idWYuRmllbGRPcHRpb25zGOgH" + 
     36          "CiRnb29nbGUvcHJvdG9idWYvY3NoYXJwX29wdGlvbnMucHJvdG8SD2dvb2ds" +
     37          "ZS5wcm90b2J1ZhogZ29vZ2xlL3Byb3RvYnVmL2Rlc2NyaXB0b3IucHJvdG8i" +
     38          "zAEKEUNTaGFycEZpbGVPcHRpb25zEhEKCW5hbWVzcGFjZRgBIAEoCRIaChJ1" +
     39          "bWJyZWxsYV9jbGFzc25hbWUYAiABKAkSHAoOcHVibGljX2NsYXNzZXMYAyAB" +
     40          "KAg6BHRydWUSFgoObXVsdGlwbGVfZmlsZXMYBCABKAgSFAoMbmVzdF9jbGFz" +
     41          "c2VzGAUgASgIEhYKDmNvZGVfY29udHJhY3RzGAYgASgIEiQKHGV4cGFuZF9u" +
     42          "YW1lc3BhY2VfZGlyZWN0b3JpZXMYByABKAgiKwoSQ1NoYXJwRmllbGRPcHRp" +
     43          "b25zEhUKDXByb3BlcnR5X25hbWUYASABKAk6XgoTY3NoYXJwX2ZpbGVfb3B0" +
     44          "aW9ucxIcLmdvb2dsZS5wcm90b2J1Zi5GaWxlT3B0aW9ucxjoByABKAsyIi5n" +
     45          "b29nbGUucHJvdG9idWYuQ1NoYXJwRmlsZU9wdGlvbnM6YQoUY3NoYXJwX2Zp" +
     46          "ZWxkX29wdGlvbnMSHS5nb29nbGUucHJvdG9idWYuRmllbGRPcHRpb25zGOgH" +
    4947          "IAEoCzIjLmdvb2dsZS5wcm90b2J1Zi5DU2hhcnBGaWVsZE9wdGlvbnM=");
    5048      pbd::FileDescriptor.InternalDescriptorAssigner assigner = delegate(pbd::FileDescriptor root) {
    5149        descriptor = root;
    5250        internal__static_google_protobuf_CSharpFileOptions__Descriptor = Descriptor.MessageTypes[0];
    53         internal__static_google_protobuf_CSharpFileOptions__FieldAccessorTable = 
     51        internal__static_google_protobuf_CSharpFileOptions__FieldAccessorTable =
    5452            new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.Builder>(internal__static_google_protobuf_CSharpFileOptions__Descriptor,
    5553                new string[] { "Namespace", "UmbrellaClassname", "PublicClasses", "MultipleFiles", "NestClasses", "CodeContracts", "ExpandNamespaceDirectories", });
    5654        internal__static_google_protobuf_CSharpFieldOptions__Descriptor = Descriptor.MessageTypes[1];
    57         internal__static_google_protobuf_CSharpFieldOptions__FieldAccessorTable = 
     55        internal__static_google_protobuf_CSharpFieldOptions__FieldAccessorTable =
    5856            new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.Builder>(internal__static_google_protobuf_CSharpFieldOptions__Descriptor,
    5957                new string[] { "PropertyName", });
     
    6866    }
    6967    #endregion
    70    
     68
    7169  }
    7270  #region Messages
     
    7674      get { return defaultInstance; }
    7775    }
    78    
     76
    7977    public override CSharpFileOptions DefaultInstanceForType {
    8078      get { return defaultInstance; }
    8179    }
    82    
     80
    8381    protected override CSharpFileOptions ThisMessage {
    8482      get { return this; }
    8583    }
    86    
     84
    8785    public static pbd::MessageDescriptor Descriptor {
    8886      get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFileOptions__Descriptor; }
    8987    }
    90    
     88
    9189    protected override pb::FieldAccess.FieldAccessorTable<CSharpFileOptions, CSharpFileOptions.Builder> InternalFieldAccessors {
    9290      get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFileOptions__FieldAccessorTable; }
    9391    }
    94    
     92
    9593    public const int NamespaceFieldNumber = 1;
    9694    private bool hasNamespace;
     
    102100      get { return namespace_; }
    103101    }
    104    
     102
    105103    public const int UmbrellaClassnameFieldNumber = 2;
    106104    private bool hasUmbrellaClassname;
     
    112110      get { return umbrellaClassname_; }
    113111    }
    114    
     112
    115113    public const int PublicClassesFieldNumber = 3;
    116114    private bool hasPublicClasses;
     
    122120      get { return publicClasses_; }
    123121    }
    124    
     122
    125123    public const int MultipleFilesFieldNumber = 4;
    126124    private bool hasMultipleFiles;
     
    132130      get { return multipleFiles_; }
    133131    }
    134    
     132
    135133    public const int NestClassesFieldNumber = 5;
    136134    private bool hasNestClasses;
     
    142140      get { return nestClasses_; }
    143141    }
    144    
     142
    145143    public const int CodeContractsFieldNumber = 6;
    146144    private bool hasCodeContracts;
     
    152150      get { return codeContracts_; }
    153151    }
    154    
     152
    155153    public const int ExpandNamespaceDirectoriesFieldNumber = 7;
    156154    private bool hasExpandNamespaceDirectories;
     
    162160      get { return expandNamespaceDirectories_; }
    163161    }
    164    
     162
    165163    public override bool IsInitialized {
    166164      get {
     
    168166      }
    169167    }
    170    
     168
    171169    public override void WriteTo(pb::CodedOutputStream output) {
    172170      int size = SerializedSize;
     
    194192      UnknownFields.WriteTo(output);
    195193    }
    196    
     194
    197195    private int memoizedSerializedSize = -1;
    198196    public override int SerializedSize {
     
    200198        int size = memoizedSerializedSize;
    201199        if (size != -1) return size;
    202        
     200
    203201        size = 0;
    204202        if (HasNamespace) {
     
    228226      }
    229227    }
    230    
     228
    231229    public static CSharpFileOptions ParseFrom(pb::ByteString data) {
    232       return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
     230      return ((Builder)CreateBuilder().MergeFrom(data)).BuildParsed();
    233231    }
    234232    public static CSharpFileOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
    235       return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
     233      return ((Builder)CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
    236234    }
    237235    public static CSharpFileOptions ParseFrom(byte[] data) {
    238       return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
     236      return ((Builder)CreateBuilder().MergeFrom(data)).BuildParsed();
    239237    }
    240238    public static CSharpFileOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
    241       return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
     239      return ((Builder)CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
    242240    }
    243241    public static CSharpFileOptions ParseFrom(global::System.IO.Stream input) {
    244       return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
     242      return ((Builder)CreateBuilder().MergeFrom(input)).BuildParsed();
    245243    }
    246244    public static CSharpFileOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
    247       return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
     245      return ((Builder)CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
    248246    }
    249247    public static CSharpFileOptions ParseDelimitedFrom(global::System.IO.Stream input) {
     
    254252    }
    255253    public static CSharpFileOptions ParseFrom(pb::CodedInputStream input) {
    256       return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
     254      return ((Builder)CreateBuilder().MergeFrom(input)).BuildParsed();
    257255    }
    258256    public static CSharpFileOptions ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
    259       return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
     257      return ((Builder)CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
    260258    }
    261259    public static Builder CreateBuilder() { return new Builder(); }
     
    263261    public override Builder CreateBuilderForType() { return new Builder(); }
    264262    public static Builder CreateBuilder(CSharpFileOptions prototype) {
    265       return (Builder) new Builder().MergeFrom(prototype);
    266     }
    267    
     263      return (Builder)new Builder().MergeFrom(prototype);
     264    }
     265
    268266    public sealed partial class Builder : pb::GeneratedBuilder<CSharpFileOptions, Builder> {
    269267      protected override Builder ThisBuilder {
    270268        get { return this; }
    271269      }
    272       public Builder() {}
    273      
     270      public Builder() { }
     271
    274272      CSharpFileOptions result = new CSharpFileOptions();
    275      
     273
    276274      protected override CSharpFileOptions MessageBeingBuilt {
    277275        get { return result; }
    278276      }
    279      
     277
    280278      public override Builder Clear() {
    281279        result = new CSharpFileOptions();
    282280        return this;
    283281      }
    284      
     282
    285283      public override Builder Clone() {
    286284        return new Builder().MergeFrom(result);
    287285      }
    288      
     286
    289287      public override pbd::MessageDescriptor DescriptorForType {
    290288        get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.Descriptor; }
    291289      }
    292      
     290
    293291      public override CSharpFileOptions DefaultInstanceForType {
    294292        get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.DefaultInstance; }
    295293      }
    296      
     294
    297295      public override CSharpFileOptions BuildPartial() {
    298296        if (result == null) {
     
    303301        return returnMe;
    304302      }
    305      
     303
    306304      public override Builder MergeFrom(pb::IMessage other) {
    307305        if (other is CSharpFileOptions) {
    308           return MergeFrom((CSharpFileOptions) other);
     306          return MergeFrom((CSharpFileOptions)other);
    309307        } else {
    310308          base.MergeFrom(other);
     
    312310        }
    313311      }
    314      
     312
    315313      public override Builder MergeFrom(CSharpFileOptions other) {
    316314        if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.DefaultInstance) return this;
     
    339337        return this;
    340338      }
    341      
     339
    342340      public override Builder MergeFrom(pb::CodedInputStream input) {
    343341        return MergeFrom(input, pb::ExtensionRegistry.Empty);
    344342      }
    345      
     343
    346344      public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
    347345        pb::UnknownFieldSet.Builder unknownFields = null;
     
    350348          switch (tag) {
    351349            case 0: {
    352               if (unknownFields != null) {
    353                 this.UnknownFields = unknownFields.Build();
    354               }
    355               return this;
    356             }
    357             default: {
    358               if (pb::WireFormat.IsEndGroupTag(tag)) {
    359350                if (unknownFields != null) {
    360351                  this.UnknownFields = unknownFields.Build();
     
    362353                return this;
    363354              }
    364               if (unknownFields == null) {
    365                 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
    366               }
    367               ParseUnknownField(input, unknownFields, extensionRegistry, tag);
    368               break;
    369             }
     355            default: {
     356                if (pb::WireFormat.IsEndGroupTag(tag)) {
     357                  if (unknownFields != null) {
     358                    this.UnknownFields = unknownFields.Build();
     359                  }
     360                  return this;
     361                }
     362                if (unknownFields == null) {
     363                  unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
     364                }
     365                ParseUnknownField(input, unknownFields, extensionRegistry, tag);
     366                break;
     367              }
    370368            case 10: {
    371               Namespace = input.ReadString();
    372               break;
    373             }
     369                Namespace = input.ReadString();
     370                break;
     371              }
    374372            case 18: {
    375               UmbrellaClassname = input.ReadString();
    376               break;
    377             }
     373                UmbrellaClassname = input.ReadString();
     374                break;
     375              }
    378376            case 24: {
    379               PublicClasses = input.ReadBool();
    380               break;
    381             }
     377                PublicClasses = input.ReadBool();
     378                break;
     379              }
    382380            case 32: {
    383               MultipleFiles = input.ReadBool();
    384               break;
    385             }
     381                MultipleFiles = input.ReadBool();
     382                break;
     383              }
    386384            case 40: {
    387               NestClasses = input.ReadBool();
    388               break;
    389             }
     385                NestClasses = input.ReadBool();
     386                break;
     387              }
    390388            case 48: {
    391               CodeContracts = input.ReadBool();
    392               break;
    393             }
     389                CodeContracts = input.ReadBool();
     390                break;
     391              }
    394392            case 56: {
    395               ExpandNamespaceDirectories = input.ReadBool();
    396               break;
    397             }
     393                ExpandNamespaceDirectories = input.ReadBool();
     394                break;
     395              }
    398396          }
    399397        }
    400398      }
    401      
    402      
     399
     400
    403401      public bool HasNamespace {
    404402        get { return result.HasNamespace; }
     
    419417        return this;
    420418      }
    421      
     419
    422420      public bool HasUmbrellaClassname {
    423421        get { return result.HasUmbrellaClassname; }
     
    438436        return this;
    439437      }
    440      
     438
    441439      public bool HasPublicClasses {
    442440        get { return result.HasPublicClasses; }
     
    456454        return this;
    457455      }
    458      
     456
    459457      public bool HasMultipleFiles {
    460458        get { return result.HasMultipleFiles; }
     
    474472        return this;
    475473      }
    476      
     474
    477475      public bool HasNestClasses {
    478476        get { return result.HasNestClasses; }
     
    492490        return this;
    493491      }
    494      
     492
    495493      public bool HasCodeContracts {
    496494        get { return result.HasCodeContracts; }
     
    510508        return this;
    511509      }
    512      
     510
    513511      public bool HasExpandNamespaceDirectories {
    514512        get { return result.HasExpandNamespaceDirectories; }
     
    533531    }
    534532  }
    535  
     533
    536534  public sealed partial class CSharpFieldOptions : pb::GeneratedMessage<CSharpFieldOptions, CSharpFieldOptions.Builder> {
    537535    private static readonly CSharpFieldOptions defaultInstance = new Builder().BuildPartial();
     
    539537      get { return defaultInstance; }
    540538    }
    541    
     539
    542540    public override CSharpFieldOptions DefaultInstanceForType {
    543541      get { return defaultInstance; }
    544542    }
    545    
     543
    546544    protected override CSharpFieldOptions ThisMessage {
    547545      get { return this; }
    548546    }
    549    
     547
    550548    public static pbd::MessageDescriptor Descriptor {
    551549      get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFieldOptions__Descriptor; }
    552550    }
    553    
     551
    554552    protected override pb::FieldAccess.FieldAccessorTable<CSharpFieldOptions, CSharpFieldOptions.Builder> InternalFieldAccessors {
    555553      get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFieldOptions__FieldAccessorTable; }
    556554    }
    557    
     555
    558556    public const int PropertyNameFieldNumber = 1;
    559557    private bool hasPropertyName;
     
    565563      get { return propertyName_; }
    566564    }
    567    
     565
    568566    public override bool IsInitialized {
    569567      get {
     
    571569      }
    572570    }
    573    
     571
    574572    public override void WriteTo(pb::CodedOutputStream output) {
    575573      int size = SerializedSize;
     
    579577      UnknownFields.WriteTo(output);
    580578    }
    581    
     579
    582580    private int memoizedSerializedSize = -1;
    583581    public override int SerializedSize {
     
    585583        int size = memoizedSerializedSize;
    586584        if (size != -1) return size;
    587        
     585
    588586        size = 0;
    589587        if (HasPropertyName) {
     
    595593      }
    596594    }
    597    
     595
    598596    public static CSharpFieldOptions ParseFrom(pb::ByteString data) {
    599       return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
     597      return ((Builder)CreateBuilder().MergeFrom(data)).BuildParsed();
    600598    }
    601599    public static CSharpFieldOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
    602       return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
     600      return ((Builder)CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
    603601    }
    604602    public static CSharpFieldOptions ParseFrom(byte[] data) {
    605       return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
     603      return ((Builder)CreateBuilder().MergeFrom(data)).BuildParsed();
    606604    }
    607605    public static CSharpFieldOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
    608       return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
     606      return ((Builder)CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
    609607    }
    610608    public static CSharpFieldOptions ParseFrom(global::System.IO.Stream input) {
    611       return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
     609      return ((Builder)CreateBuilder().MergeFrom(input)).BuildParsed();
    612610    }
    613611    public static CSharpFieldOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
    614       return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
     612      return ((Builder)CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
    615613    }
    616614    public static CSharpFieldOptions ParseDelimitedFrom(global::System.IO.Stream input) {
     
    621619    }
    622620    public static CSharpFieldOptions ParseFrom(pb::CodedInputStream input) {
    623       return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
     621      return ((Builder)CreateBuilder().MergeFrom(input)).BuildParsed();
    624622    }
    625623    public static CSharpFieldOptions ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
    626       return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
     624      return ((Builder)CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
    627625    }
    628626    public static Builder CreateBuilder() { return new Builder(); }
     
    630628    public override Builder CreateBuilderForType() { return new Builder(); }
    631629    public static Builder CreateBuilder(CSharpFieldOptions prototype) {
    632       return (Builder) new Builder().MergeFrom(prototype);
    633     }
    634    
     630      return (Builder)new Builder().MergeFrom(prototype);
     631    }
     632
    635633    public sealed partial class Builder : pb::GeneratedBuilder<CSharpFieldOptions, Builder> {
    636634      protected override Builder ThisBuilder {
    637635        get { return this; }
    638636      }
    639       public Builder() {}
    640      
     637      public Builder() { }
     638
    641639      CSharpFieldOptions result = new CSharpFieldOptions();
    642      
     640
    643641      protected override CSharpFieldOptions MessageBeingBuilt {
    644642        get { return result; }
    645643      }
    646      
     644
    647645      public override Builder Clear() {
    648646        result = new CSharpFieldOptions();
    649647        return this;
    650648      }
    651      
     649
    652650      public override Builder Clone() {
    653651        return new Builder().MergeFrom(result);
    654652      }
    655      
     653
    656654      public override pbd::MessageDescriptor DescriptorForType {
    657655        get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.Descriptor; }
    658656      }
    659      
     657
    660658      public override CSharpFieldOptions DefaultInstanceForType {
    661659        get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.DefaultInstance; }
    662660      }
    663      
     661
    664662      public override CSharpFieldOptions BuildPartial() {
    665663        if (result == null) {
     
    670668        return returnMe;
    671669      }
    672      
     670
    673671      public override Builder MergeFrom(pb::IMessage other) {
    674672        if (other is CSharpFieldOptions) {
    675           return MergeFrom((CSharpFieldOptions) other);
     673          return MergeFrom((CSharpFieldOptions)other);
    676674        } else {
    677675          base.MergeFrom(other);
     
    679677        }
    680678      }
    681      
     679
    682680      public override Builder MergeFrom(CSharpFieldOptions other) {
    683681        if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.DefaultInstance) return this;
     
    688686        return this;
    689687      }
    690      
     688
    691689      public override Builder MergeFrom(pb::CodedInputStream input) {
    692690        return MergeFrom(input, pb::ExtensionRegistry.Empty);
    693691      }
    694      
     692
    695693      public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
    696694        pb::UnknownFieldSet.Builder unknownFields = null;
     
    699697          switch (tag) {
    700698            case 0: {
    701               if (unknownFields != null) {
    702                 this.UnknownFields = unknownFields.Build();
    703               }
    704               return this;
    705             }
    706             default: {
    707               if (pb::WireFormat.IsEndGroupTag(tag)) {
    708699                if (unknownFields != null) {
    709700                  this.UnknownFields = unknownFields.Build();
     
    711702                return this;
    712703              }
    713               if (unknownFields == null) {
    714                 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
    715               }
    716               ParseUnknownField(input, unknownFields, extensionRegistry, tag);
    717               break;
    718             }
     704            default: {
     705                if (pb::WireFormat.IsEndGroupTag(tag)) {
     706                  if (unknownFields != null) {
     707                    this.UnknownFields = unknownFields.Build();
     708                  }
     709                  return this;
     710                }
     711                if (unknownFields == null) {
     712                  unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
     713                }
     714                ParseUnknownField(input, unknownFields, extensionRegistry, tag);
     715                break;
     716              }
    719717            case 10: {
    720               PropertyName = input.ReadString();
    721               break;
    722             }
     718                PropertyName = input.ReadString();
     719                break;
     720              }
    723721          }
    724722        }
    725723      }
    726      
    727      
     724
     725
    728726      public bool HasPropertyName {
    729727        get { return result.HasPropertyName; }
     
    749747    }
    750748  }
    751  
     749
    752750  #endregion
    753  
     751
    754752}
  • trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.ProtobufCS/0.9.1/ProtobufCS/src/ProtocolBuffers/Descriptors/DescriptorPool.cs

    r3857 r4068  
     1using System;
    12// Protocol Buffers - Google's data interchange format
    23// Copyright 2008 Google Inc.  All rights reserved.
     
    3132// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    3233using System.Collections.Generic;
    33 using System;
    3434using System.Text;
    3535using System.Text.RegularExpressions;
  • trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.ProtobufCS/0.9.1/ProtobufCS/src/ProtocolBuffers/ExtensionRegistry.cs

    r3857 r4068  
    3333#endregion
    3434
     35using System;
    3536using System.Collections.Generic;
    3637using Google.ProtocolBuffers.Descriptors;
    37 using System;
    3838
    3939namespace Google.ProtocolBuffers {
     
    156156    /// Add an extension from a generated file to the registry.
    157157    /// </summary>
    158     public void Add<TExtension> (GeneratedExtensionBase<TExtension> extension) {
     158    public void Add<TExtension>(GeneratedExtensionBase<TExtension> extension) {
    159159      if (extension.Descriptor.MappedType == MappedType.Message) {
    160160        Add(new ExtensionInfo(extension.Descriptor, extension.MessageDefaultInstance));
  • trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.ProtobufCS/0.9.1/ProtobufCS/src/ProtocolBuffers/GeneratedMessage.cs

    r3857 r4068  
    3434
    3535using System;
     36using System.Collections;
    3637using System.Collections.Generic;
    3738using Google.ProtocolBuffers.Collections;
    3839using Google.ProtocolBuffers.Descriptors;
    3940using Google.ProtocolBuffers.FieldAccess;
    40 using System.Collections;
    4141
    4242namespace Google.ProtocolBuffers {
    43  
     43
    4444  /// <summary>
    4545  /// All generated protocol message classes extend this class. It implements
     
    4848  /// </summary>
    4949  public abstract class GeneratedMessage<TMessage, TBuilder> : AbstractMessage<TMessage, TBuilder>
    50       where TMessage : GeneratedMessage<TMessage, TBuilder>
    51       where TBuilder : GeneratedBuilder<TMessage, TBuilder> {
     50    where TMessage : GeneratedMessage<TMessage, TBuilder>
     51    where TBuilder : GeneratedBuilder<TMessage, TBuilder> {
    5252
    5353    private UnknownFieldSet unknownFields = UnknownFieldSet.DefaultInstance;
     
    100100              // We know it's an IList<T>, but not the exact type - so
    101101              // IEnumerable is the best we can do. (C# generics aren't covariant yet.)
    102               foreach (IMessage element in (IEnumerable) this[field]) {
     102              foreach (IMessage element in (IEnumerable)this[field]) {
    103103                if (!element.IsInitialized) {
    104104                  return false;
     
    106106              }
    107107            } else {
    108               if (HasField(field) && !((IMessage) this[field]).IsInitialized) {
     108              if (HasField(field) && !((IMessage)this[field]).IsInitialized) {
    109109                return false;
    110110              }
     
    148148    internal void SetUnknownFields(UnknownFieldSet fieldSet) {
    149149      unknownFields = fieldSet;
    150     }   
     150    }
    151151  }
    152152}
  • trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.ProtobufCS/0.9.1/ProtobufCS/src/ProtocolBuffers/GeneratedRepeatExtension.cs

    r3857 r4068  
    3434
    3535using System;
     36using System.Collections;
    3637using System.Collections.Generic;
    3738using Google.ProtocolBuffers.Descriptors;
    38 using System.Collections;
    3939
    4040namespace Google.ProtocolBuffers {
     
    4343  /// </summary>
    4444  public sealed class GeneratedRepeatExtension<TExtensionElement> : GeneratedExtensionBase<IList<TExtensionElement>> {
    45     private GeneratedRepeatExtension(FieldDescriptor field) : base(field, typeof(TExtensionElement)) {
     45    private GeneratedRepeatExtension(FieldDescriptor field)
     46      : base(field, typeof(TExtensionElement)) {
    4647    }
    4748
     
    6566        // Must convert the whole list.
    6667        List<TExtensionElement> result = new List<TExtensionElement>();
    67         foreach (object element in (IEnumerable) value) {
    68           result.Add((TExtensionElement) SingularFromReflectionType(element));
     68        foreach (object element in (IEnumerable)value) {
     69          result.Add((TExtensionElement)SingularFromReflectionType(element));
    6970        }
    7071        return result;
  • trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.ProtobufCS/0.9.1/ProtobufCS/src/ProtocolBuffers/MessageStreamIterator.cs

    r3857 r4068  
    3434
    3535using System;
     36using System.Collections;
    3637using System.Collections.Generic;
    37 using System.Collections;
    3838using System.IO;
    3939using System.Reflection;
     
    9191        return (Func<CodedInputStream, ExtensionRegistry, TMessage>)Delegate.CreateDelegate(
    9292          typeof(Func<CodedInputStream, ExtensionRegistry, TMessage>), builderBuilder, buildMethod);
    93       } catch (ArgumentException e) {
     93      }
     94      catch (ArgumentException e) {
    9495        typeInitializationException = e;
    95       } catch (InvalidOperationException e) {
     96      }
     97      catch (InvalidOperationException e) {
    9698        typeInitializationException = e;
    97       } catch (InvalidCastException e) {
     99      }
     100      catch (InvalidCastException e) {
    98101        // Can't see why this would happen, but best to know about it.
    99102        typeInitializationException = e;
     
    125128    }
    126129
    127 // This is only ever fetched by reflection, so the compiler may
    128 // complain that it's unused
     130    // This is only ever fetched by reflection, so the compiler may
     131    // complain that it's unused
    129132#pragma warning disable 0169
    130133    /// <summary>
     
    136139    /// be the same type when we construct the generic method by reflection.
    137140    /// </summary>
    138     private static TMessage BuildImpl<TMessage2, TBuilder>(Func<TBuilder> builderBuilder, CodedInputStream input, ExtensionRegistry registry) 
    139         where TBuilder : IBuilder<TMessage2, TBuilder>
    140         where TMessage2 : TMessage, IMessage<TMessage2, TBuilder> {
     141    private static TMessage BuildImpl<TMessage2, TBuilder>(Func<TBuilder> builderBuilder, CodedInputStream input, ExtensionRegistry registry)
     142      where TBuilder : IBuilder<TMessage2, TBuilder>
     143      where TMessage2 : TMessage, IMessage<TMessage2, TBuilder> {
    141144      TBuilder builder = builderBuilder();
    142145      input.ReadMessage(builder, registry);
     
    156159    }
    157160
    158     private MessageStreamIterator(StreamProvider streamProvider, ExtensionRegistry extensionRegistry) 
    159       : this (streamProvider, extensionRegistry, CodedInputStream.DefaultSizeLimit) {
     161    private MessageStreamIterator(StreamProvider streamProvider, ExtensionRegistry extensionRegistry)
     162      : this(streamProvider, extensionRegistry, CodedInputStream.DefaultSizeLimit) {
    160163    }
    161164
  • trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.ProtobufCS/0.9.1/ProtobufCS/src/ProtocolBuffers/NameHelpers.cs

    r3857 r4068  
    3333#endregion
    3434
     35using System.Globalization;
    3536using System.Text;
    36 using System.Globalization;
    3737
    3838namespace Google.ProtocolBuffers {
  • trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.ProtobufCS/0.9.1/ProtobufCS/src/ProtocolBuffers/Properties/AssemblyInfo.cs

    r3857 r4068  
    3232using System;
    3333using System.Reflection;
     34using System.Runtime.CompilerServices;
    3435using System.Runtime.InteropServices;
    35 using System.Runtime.CompilerServices;
    3636
    3737// General Information about an assembly is controlled through the following
     
    6969#endif
    7070
    71 [assembly:InternalsVisibleTo("Google.ProtocolBuffers.Test,PublicKey="+
    72 "00240000048000009400000006020000002400005253413100040000010001008179f2dd31a648"+
    73 "2a2359dbe33e53701167a888e7c369a9ae3210b64f93861d8a7d286447e58bc167e3d99483beda"+
    74 "72f738140072bb69990bc4f98a21365de2c105e848974a3d210e938b0a56103c0662901efd6b78"+
    75 "0ee6dbe977923d46a8fda18fb25c65dd73b149a5cd9f3100668b56649932dadd8cf5be52eb1dce"+
     71[assembly: InternalsVisibleTo("Google.ProtocolBuffers.Test,PublicKey=" +
     72"00240000048000009400000006020000002400005253413100040000010001008179f2dd31a648" +
     73"2a2359dbe33e53701167a888e7c369a9ae3210b64f93861d8a7d286447e58bc167e3d99483beda" +
     74"72f738140072bb69990bc4f98a21365de2c105e848974a3d210e938b0a56103c0662901efd6b78" +
     75"0ee6dbe977923d46a8fda18fb25c65dd73b149a5cd9f3100668b56649932dadd8cf5be52eb1dce" +
    7676"ad5cedbf")]
    7777[assembly: InternalsVisibleTo("ProtoGen,PublicKey=" +
  • trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.ProtobufCS/0.9.1/ProtobufCS/src/ProtocolBuffers/TextFormat.cs

    r3857 r4068  
    3434
    3535using System;
     36using System.Collections;
    3637using System.Collections.Generic;
    3738using System.Globalization;
     
    3940using System.Text;
    4041using Google.ProtocolBuffers.Descriptors;
    41 using System.Collections;
    4242
    4343namespace Google.ProtocolBuffers {
     
    8787      if (field.IsRepeated) {
    8888        // Repeated field.  Print each element.
    89         foreach (object element in (IEnumerable) value) {
     89        foreach (object element in (IEnumerable)value) {
    9090          PrintSingleField(field, element, generator);
    9191        }
     
    102102            && field.FieldType == FieldType.Message
    103103            && field.IsOptional
    104             // object equality (TODO(jonskeet): Work out what this comment means!)
     104          // object equality (TODO(jonskeet): Work out what this comment means!)
    105105            && field.ExtensionScope == field.MessageType) {
    106106          generator.Print(field.MessageType.FullName);
     
    150150          // The simple Object.ToString converts using the current culture.
    151151          // We want to always use the invariant culture so it's predictable.
    152           generator.Print(((IConvertible) value).ToString(CultureInfo.InvariantCulture));
     152          generator.Print(((IConvertible)value).ToString(CultureInfo.InvariantCulture));
    153153          break;
    154154        case FieldType.Bool:
    155155          // Explicitly use the Java true/false
    156           generator.Print((bool) value ? "true" : "false");
     156          generator.Print((bool)value ? "true" : "false");
    157157          break;
    158158
    159159        case FieldType.String:
    160160          generator.Print("\"");
    161           generator.Print(EscapeText((string) value));
     161          generator.Print(EscapeText((string)value));
    162162          generator.Print("\"");
    163163          break;
    164164
    165165        case FieldType.Bytes: {
    166           generator.Print("\"");
    167           generator.Print(EscapeBytes((ByteString) value));
    168           generator.Print("\"");
    169           break;
    170         }
     166            generator.Print("\"");
     167            generator.Print(EscapeBytes((ByteString)value));
     168            generator.Print("\"");
     169            break;
     170          }
    171171
    172172        case FieldType.Enum: {
    173           generator.Print(((EnumValueDescriptor) value).Name);
    174           break;
    175         }
     173            generator.Print(((EnumValueDescriptor)value).Name);
     174            break;
     175          }
    176176
    177177        case FieldType.Message:
    178178        case FieldType.Group:
    179           Print((IMessage) value, generator);
     179          Print((IMessage)value, generator);
    180180          break;
    181181      }
     
    220220
    221221    internal static ulong ParseUInt64(string text) {
    222       return (ulong) ParseInteger(text, false, true);
     222      return (ulong)ParseInteger(text, false, true);
    223223    }
    224224
     
    228228
    229229    internal static uint ParseUInt32(string text) {
    230       return (uint) ParseInteger(text, false, false);
     230      return (uint)ParseInteger(text, false, false);
    231231    }
    232232
    233233    internal static int ParseInt32(string text) {
    234       return (int) ParseInteger(text, true, false);
     234      return (int)ParseInteger(text, true, false);
    235235    }
    236236
     
    269269      }
    270270    }
    271    
     271
    272272    /// <summary>
    273273    /// Parses an integer in hex (leading 0x), decimal (no prefix) or octal (leading 0).
     
    298298        // We should be able to use Convert.ToUInt64 for all cases.
    299299        result = radix == 10 ? ulong.Parse(text) : Convert.ToUInt64(text, radix);
    300       } catch (OverflowException) {
     300      }
     301      catch (OverflowException) {
    301302        // Convert OverflowException to FormatException so there's a single exception type this method can throw.
    302303        string numberDescription = string.Format("{0}-bit {1}signed integer", isLong ? 64 : 32, isSigned ? "" : "un");
     
    310311          throw new FormatException("Number out of range for " + numberDescription + ": " + original);
    311312        }
    312         return -((long) result);
    313       } else {
    314         ulong max = isSigned 
    315             ? (isLong ? (ulong) long.MaxValue : int.MaxValue)
     313        return -((long)result);
     314      } else {
     315        ulong max = isSigned
     316            ? (isLong ? (ulong)long.MaxValue : int.MaxValue)
    316317            : (isLong ? ulong.MaxValue : uint.MaxValue);
    317318        if (result > max) {
     
    319320          throw new FormatException("Number out of range for " + numberDescription + ": " + original);
    320321        }
    321         return (long) result;
     322        return (long)result;
    322323      }
    323324    }
     
    384385        switch (b) {
    385386          // C# does not use \a or \v
    386           case 0x07: builder.Append("\\a" ); break;
    387           case (byte)'\b': builder.Append("\\b" ); break;
    388           case (byte)'\f': builder.Append("\\f" ); break;
    389           case (byte)'\n': builder.Append("\\n" ); break;
    390           case (byte)'\r': builder.Append("\\r" ); break;
    391           case (byte)'\t': builder.Append("\\t" ); break;
    392           case 0x0b: builder.Append("\\v" ); break;
     387          case 0x07: builder.Append("\\a"); break;
     388          case (byte)'\b': builder.Append("\\b"); break;
     389          case (byte)'\f': builder.Append("\\f"); break;
     390          case (byte)'\n': builder.Append("\\n"); break;
     391          case (byte)'\r': builder.Append("\\r"); break;
     392          case (byte)'\t': builder.Append("\\t"); break;
     393          case 0x0b: builder.Append("\\v"); break;
    393394          case (byte)'\\': builder.Append("\\\\"); break;
    394395          case (byte)'\'': builder.Append("\\\'"); break;
    395           case (byte)'"' : builder.Append("\\\""); break;
     396          case (byte)'"': builder.Append("\\\""); break;
    396397          default:
    397398            if (b >= 0x20 && b < 128) {
    398               builder.Append((char) b);
     399              builder.Append((char)b);
    399400            } else {
    400401              builder.Append('\\');
    401               builder.Append((char) ('0' + ((b >> 6) & 3)));
    402               builder.Append((char) ('0' + ((b >> 3) & 7)));
    403               builder.Append((char) ('0' + (b & 7)));
     402              builder.Append((char)('0' + ((b >> 6) & 3)));
     403              builder.Append((char)('0' + ((b >> 3) & 7)));
     404              builder.Append((char)('0' + (b & 7)));
    404405            }
    405406            break;
     
    421422        }
    422423        if (c != '\\') {
    423           result[pos++] = (byte) c;
     424          result[pos++] = (byte)c;
    424425          continue;
    425426        }
     
    433434          // Octal escape.
    434435          int code = ParseDigit(c);
    435           if (i + 1 < input.Length && IsOctal(input[i+1])) {
     436          if (i + 1 < input.Length && IsOctal(input[i + 1])) {
    436437            i++;
    437438            code = code * 8 + ParseDigit(input[i]);
    438439          }
    439           if (i + 1 < input.Length && IsOctal(input[i+1])) {
     440          if (i + 1 < input.Length && IsOctal(input[i + 1])) {
    440441            i++;
    441442            code = code * 8 + ParseDigit(input[i]);
    442443          }
    443           result[pos++] = (byte) code;
     444          result[pos++] = (byte)code;
    444445        } else {
    445446          switch (c) {
    446447            case 'a': result[pos++] = 0x07; break;
    447             case 'b': result[pos++] = (byte) '\b'; break;
    448             case 'f': result[pos++] = (byte) '\f'; break;
    449             case 'n': result[pos++] = (byte) '\n'; break;
    450             case 'r': result[pos++] = (byte) '\r'; break;
    451             case 't': result[pos++] = (byte) '\t'; break;
     448            case 'b': result[pos++] = (byte)'\b'; break;
     449            case 'f': result[pos++] = (byte)'\f'; break;
     450            case 'n': result[pos++] = (byte)'\n'; break;
     451            case 'r': result[pos++] = (byte)'\r'; break;
     452            case 't': result[pos++] = (byte)'\t'; break;
    452453            case 'v': result[pos++] = 0x0b; break;
    453             case '\\': result[pos++] = (byte) '\\'; break;
    454             case '\'': result[pos++] = (byte) '\''; break;
    455             case '"': result[pos++] = (byte) '\"'; break;
     454            case '\\': result[pos++] = (byte)'\\'; break;
     455            case '\'': result[pos++] = (byte)'\''; break;
     456            case '"': result[pos++] = (byte)'\"'; break;
    456457
    457458            case 'x':
    458459              // hex escape
    459460              int code;
    460               if (i + 1 < input.Length && IsHex(input[i+1])) {
     461              if (i + 1 < input.Length && IsHex(input[i + 1])) {
    461462                i++;
    462463                code = ParseDigit(input[i]);
     
    464465                throw new FormatException("Invalid escape sequence: '\\x' with no digits");
    465466              }
    466               if (i + 1 < input.Length && IsHex(input[i+1])) {
     467              if (i + 1 < input.Length && IsHex(input[i + 1])) {
    467468                ++i;
    468469                code = code * 16 + ParseDigit(input[i]);
     
    636637
    637638          case FieldType.Enum: {
    638             EnumDescriptor enumType = field.EnumType;
    639 
    640             if (tokenizer.LookingAtInteger()) {
    641               int number = tokenizer.ConsumeInt32();
    642               value = enumType.FindValueByNumber(number);
    643               if (value == null) {
    644                 throw tokenizer.CreateFormatExceptionPreviousToken(
    645                   "Enum type \"" + enumType.FullName +
    646                   "\" has no value with number " + number + ".");
     639              EnumDescriptor enumType = field.EnumType;
     640
     641              if (tokenizer.LookingAtInteger()) {
     642                int number = tokenizer.ConsumeInt32();
     643                value = enumType.FindValueByNumber(number);
     644                if (value == null) {
     645                  throw tokenizer.CreateFormatExceptionPreviousToken(
     646                    "Enum type \"" + enumType.FullName +
     647                    "\" has no value with number " + number + ".");
     648                }
     649              } else {
     650                String id = tokenizer.ConsumeIdentifier();
     651                value = enumType.FindValueByName(id);
     652                if (value == null) {
     653                  throw tokenizer.CreateFormatExceptionPreviousToken(
     654                    "Enum type \"" + enumType.FullName +
     655                    "\" has no value named \"" + id + "\".");
     656                }
    647657              }
    648             } else {
    649               String id = tokenizer.ConsumeIdentifier();
    650               value = enumType.FindValueByName(id);
    651               if (value == null) {
    652                 throw tokenizer.CreateFormatExceptionPreviousToken(
    653                   "Enum type \"" + enumType.FullName +
    654                   "\" has no value named \"" + id + "\".");
    655               }
     658
     659              break;
    656660            }
    657 
    658             break;
    659           }
    660661
    661662          case FieldType.Message:
  • trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.ProtobufCS/0.9.1/ProtobufCS/src/ProtocolBuffers/UnknownFieldSet.cs

    r3857 r4068  
    3838using Google.ProtocolBuffers.Collections;
    3939using Google.ProtocolBuffers.Descriptors;
    40 using Google.ProtocolBuffers.DescriptorProtos;
    4140
    4241namespace Google.ProtocolBuffers {
     
    121120    /// Gets the number of bytes required to encode this set.
    122121    /// </summary>
    123     public int SerializedSize { 
     122    public int SerializedSize {
    124123      get {
    125124        int result = 0;
     
    128127        }
    129128        return result;
    130       } 
     129      }
    131130    }
    132131
     
    241240    /// Builder for UnknownFieldSets.
    242241    /// </summary>
    243     public sealed class Builder
    244     {
     242    public sealed class Builder {
    245243      /// <summary>
    246244      /// Mapping from number to field. Note that by using a SortedList we ensure
     
    320318        return this;
    321319      }
    322      
     320
    323321      /// <summary>
    324322      /// Parse an entire message from <paramref name="input"/> and merge
     
    335333      }
    336334
    337         /// <summary>
    338         /// Parse a single field from <paramref name="input"/> and merge it
    339         /// into this set.
    340         /// </summary>
    341         /// <param name="tag">The field's tag number, which was already parsed.</param>
    342         /// <param name="input">The coded input stream containing the field</param>
    343         /// <returns>false if the tag is an "end group" tag, true otherwise</returns>
     335      /// <summary>
     336      /// Parse a single field from <paramref name="input"/> and merge it
     337      /// into this set.
     338      /// </summary>
     339      /// <param name="tag">The field's tag number, which was already parsed.</param>
     340      /// <param name="input">The coded input stream containing the field</param>
     341      /// <returns>false if the tag is an "end group" tag, true otherwise</returns>
    344342      [CLSCompliant(false)]
    345343      public bool MergeFieldFrom(uint tag, CodedInputStream input) {
     
    356354            return true;
    357355          case WireFormat.WireType.StartGroup: {
    358             Builder subBuilder = CreateBuilder();
    359             input.ReadUnknownGroup(number, subBuilder);
    360             GetFieldBuilder(number).AddGroup(subBuilder.Build());
    361             return true;
    362           }
     356              Builder subBuilder = CreateBuilder();
     357              input.ReadUnknownGroup(number, subBuilder);
     358              GetFieldBuilder(number).AddGroup(subBuilder.Build());
     359              return true;
     360            }
    363361          case WireFormat.WireType.EndGroup:
    364362            return false;
     
    428426      public Builder MergeFrom(UnknownFieldSet other) {
    429427        if (other != DefaultInstance) {
    430           foreach(KeyValuePair<int, UnknownField> entry in other.fields) {
     428          foreach (KeyValuePair<int, UnknownField> entry in other.fields) {
    431429            MergeField(entry.Key, entry.Value);
    432430          }
     
    486484      /// <param name="tag">The tag, which should already have been read from the input</param>
    487485      /// <returns>true unless the tag is an end-group tag</returns>
    488       internal bool MergeFieldFrom(CodedInputStream input, 
     486      internal bool MergeFieldFrom(CodedInputStream input,
    489487          ExtensionRegistry extensionRegistry, IBuilder builder, uint tag) {
    490488
Note: See TracChangeset for help on using the changeset viewer.