public override string ToString()
 {
     return
         (InterfaceId.ToString() + " - " +
          (Address == null ? "unassigned" : Address.ToString()) + " - " +
          Ok.ToString() + " - " +
          Method.ToString() + " - " +
          Status.ToString() + " - " +
          ProtocolStatus.ToString());
 }
Пример #2
0
        internal string Format(NdrFormatter context)
        {
            NdrStringBuilder builder = new NdrStringBuilder();

            builder.AppendLine("[uuid(\"{0}\"), version({1})]", InterfaceId, InterfaceVersion);
            builder.AppendLine("interface intf_{0} {{", InterfaceId.ToString().Replace('-', '_'));
            builder.PushIndent(' ', 4);
            foreach (NdrProcedureDefinition proc in Procedures)
            {
                builder.AppendLine(proc.FormatProcedure(context));
            }
            builder.PopIndent();
            builder.AppendLine("}").AppendLine();
            return(builder.ToString());
        }