예제 #1
0
            public override string GetArguments(KeyResolver resolver)
            {
                string s = String.Concat("[", this.Keys.Length.ToString(), "] {");

                if (this.Keys.Length > 0)
                {
                    s += resolver.Resolve(this.Keys[0]);
                }
                if (this.Keys.Length > 1)
                {
                    s += " ... " + resolver.Resolve(this.Keys[this.Keys.Length - 1]);
                }
                return(s + " }");
            }
예제 #2
0
 public override string GetArguments(KeyResolver resolver)
 {
     return(resolver.Resolve(this.Key));
 }
예제 #3
0
 public override string GetArguments(KeyResolver resolver)
 {
     return(String.Concat(resolver.Resolve(this.Key), " ", this.Mutation.ToString(), " ", this.Param.ToString("K")));
 }
예제 #4
0
            public override string ToString(KeyResolver resolver)
            {
                resolver = resolver ?? KeyResolver.Default;
                var arg = this.GetArguments(resolver);
                var sb  = new StringBuilder();

                if (this.Snapshot)
                {
                    sb.Append("Snapshot.");
                }
                sb.Append("Atomic_").Append(this.Mutation.ToString()).Append(' ').Append(resolver.Resolve(this.Key)).Append(", <").Append(this.Param.ToHexaString(' ')).Append('>');
                return(sb.ToString());
            }
예제 #5
0
 public override string GetArguments(KeyResolver resolver)
 {
     return(String.Concat(resolver.Resolve(this.Key), " = ", this.Value.ToString("K")));
 }
예제 #6
0
            public override string ToString(KeyResolver resolver)
            {
                resolver = resolver ?? KeyResolver.Default;
                var sb = new StringBuilder();

                if (this.Snapshot)
                {
                    sb.Append("Snapshot.");
                }
                sb.Append("Atomic_").Append(this.Mutation.ToString()).Append(' ').Append(resolver.Resolve(GetUserKey())).Append(", <").Append(GetUserValue().ToHexaString(' ')).Append('>');
                return(sb.ToString());
            }
예제 #7
0
 public override string GetArguments(KeyResolver resolver)
 {
     return(string.Concat(resolver.Resolve(GetUserKey()), " ", this.Mutation.ToString(), " ", GetUserValue().ToString("V")));
 }
예제 #8
0
 public override string GetArguments(KeyResolver resolver) => resolver.Resolve(this.Key);
 public override string GetArguments(KeyResolver resolver)
 {
     return(resolver.Resolve(this.Key) + " =?= " + (this.Expected.IsNull ? "<missing>" : this.Expected.ToString("V")));
 }