MakeImmutable() private méthode

Makes this FieldSet immutable, and returns it for convenience. Any mutable repeated fields are made immutable, as well as the map itself.
private MakeImmutable ( ) : FieldSet
Résultat FieldSet
Exemple #1
0
            public override DynamicMessage BuildPartial()
            {
                fields.MakeImmutable();
                DynamicMessage result = new DynamicMessage(type, fields, unknownFields);

                fields        = null;
                unknownFields = null;
                return(result);
            }
            public override DynamicMessage BuildPartial()
            {
                if (fields == null)
                {
                    throw new InvalidOperationException("Build() has already been called on this Builder.");
                }
                fields.MakeImmutable();
                DynamicMessage result = new DynamicMessage(type, fields, unknownFields);

                fields        = null;
                unknownFields = null;
                return(result);
            }