AmazedSaint.Elastic.ElasticExpandoObject.CreateOrGetAttribute C# (CSharp) Метод

CreateOrGetAttribute() приватный Метод

Add a member to this element, with the specified value
private CreateOrGetAttribute ( string memberName, object value ) : ElasticExpandoObject
memberName string
value object
Результат ElasticExpandoObject
        internal ElasticExpandoObject CreateOrGetAttribute(string memberName, object value)
        {
            if (!attributes.ContainsKey(memberName))
            {
                attributes[memberName] = new ElasticExpandoObject(value, this,memberName);
                return attributes[memberName];
            }
            else
            {
                return attributes[memberName];
            }
        }