ToYamlFlowStyle() статический приватный Метод

static private ToYamlFlowStyle ( object styleObj ) : FlowStyle
styleObj object
Результат FlowStyle
Пример #1
0
                public static object CreateSequence([NotNull] BlockParam /*!*/ block, Out /*!*/ self, [DefaultProtocol] MutableString taguri, object yamlStyle)
                {
                    var rep = self._representer;
                    var seq = new SequenceNode(rep.ToTag(taguri), new List <Node>(), RubyYaml.ToYamlFlowStyle(yamlStyle));

                    object blockResult;

                    if (block.Yield(seq, out blockResult))
                    {
                        return(blockResult);
                    }

                    return(seq);
                }
Пример #2
0
                public static object CreateMap([NotNull] BlockParam /*!*/ block, Out /*!*/ self, [DefaultProtocol] MutableString taguri, object yamlStyle)
                {
                    var rep = self._representer;
                    var map = new MappingNode(rep.ToTag(taguri), new Dictionary <Node, Node>(), RubyYaml.ToYamlFlowStyle(yamlStyle));

                    object blockResult;

                    if (block.Yield(map, out blockResult))
                    {
                        return(blockResult);
                    }

                    return(map);
                }
Пример #3
0
 public static object SetStyle(SequenceNode /*!*/ self, object value)
 {
     self.FlowStyle = RubyYaml.ToYamlFlowStyle(value);
     return(value);
 }