System.Text.StringBuilder.Append(bool)

Here are the examples of the csharp api System.Text.StringBuilder.Append(bool) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

304 Examples 7

19 Source : DefaultPaymentMethodDetails.cs
with MIT License
from Adyen

public override string ToString()
        {
            var sb = new StringBuilder();
            sb.Append("clreplaced DefaultPaymentMethodDetails {\n");
            sb.Append("  Type: ").Append(Type).Append("\n");
            sb.Append("  Number: ").Append(Number).Append("\n");
            sb.Append("  ExpiryMonth: ").Append(ExpiryMonth).Append("\n");
            sb.Append("  ExpiryYear: ").Append(ExpiryYear).Append("\n");
            sb.Append("  HolderName: ").Append(HolderName).Append("\n");
            sb.Append("  Cvc: ").Append(Cvc).Append("\n");
            sb.Append("  InstallmentConfigurationKey: ").Append(InstallmentConfigurationKey).Append("\n");
            sb.Append("  PersonalDetails: ").Append(PersonalDetails).Append("\n");
            sb.Append("  BillingAddress: ").Append(BillingAddress).Append("\n");
            sb.Append("  DeliveryAddress: ").Append(DeliveryAddress).Append("\n");
            sb.Append("  EncryptedCardNumber: ").Append(EncryptedCardNumber).Append("\n");
            sb.Append("  EncryptedExpiryMonth: ").Append(EncryptedExpiryMonth).Append("\n");
            sb.Append("  EncryptedExpiryYear: ").Append(EncryptedExpiryYear).Append("\n");
            sb.Append("  EncryptedSecurityCode: ").Append(EncryptedSecurityCode).Append("\n");
#pragma warning disable 618
            sb.Append("  RecurringDetailReference: ").Append(RecurringDetailReference).Append("\n");
#pragma warning restore 618
            sb.Append("  StoredPaymentMethodId: ").Append(StoredPaymentMethodId).Append("\n");
            sb.Append("  StoreDetails: ").Append(StoreDetails).Append("\n");
            sb.Append("  Issuer: ").Append(Issuer).Append("\n");
            sb.Append("  SepaOwnerName: ").Append(SepaOwnerName).Append("\n");
            sb.Append("  SepaIbanNumber: ").Append(SepaIbanNumber).Append("\n");
            sb.Append("  BankAccount: ").Append(BankAccount).Append("\n");
            sb.Append("}\n");
            return sb.ToString();
        }

19 Source : PaymentMethodIssuer.cs
with MIT License
from Adyen

public override string ToString()
        {
            var sb = new StringBuilder();
            sb.Append("clreplaced PaymentMethodIssuer {\n");
            sb.Append("  disabled: ").Append(disabled).Append("\n");
            sb.Append("  id: ").Append(id).Append("\n");
            sb.Append("  name: ").Append(name).Append("\n");
            sb.Append("}\n");
            return sb.ToString();
        }

19 Source : GetOnboardingUrlRequest.cs
with MIT License
from Adyen

public override string ToString()
        {
            var sb = new StringBuilder();
            sb.Append("clreplaced GetOnboardingUrlRequest {\n");
            sb.Append("  AccountHolderCode: ").Append(AccountHolderCode).Append("\n");
            sb.Append("  PlatformName: ").Append(PlatformName).Append("\n");
            sb.Append("  ReturnUrl: ").Append(ReturnUrl).Append("\n");
            sb.Append("  ShopperLocale: ").Append(ShopperLocale).Append("\n");
            sb.Append("  EditMode: ").Append(EditMode).Append("\n");
            sb.Append("}\n");
            return sb.ToString();
        }

19 Source : GetOnboardingUrlResponse.cs
with MIT License
from Adyen

public override string ToString()
        {
            var sb = new StringBuilder();
            sb.Append("clreplaced GetOnboardingUrlResponse {\n");
            sb.Append("  InvalidFields: ").Append(InvalidFields.ObjectListToString()).Append("\n");
            sb.Append("  PspReference: ").Append(PspReference).Append("\n");
            sb.Append("  RedirectUrl: ").Append(RedirectUrl).Append("\n");
            sb.Append("  ResultCode: ").Append(ResultCode).Append("\n");
            sb.Append("  SubmittedAsync: ").Append(SubmittedAsync).Append("\n");
            sb.Append("}\n");
            return sb.ToString();
        }

19 Source : TestSubscriber.cs
with Apache License 2.0
from akarnokd

public InvalidOperationException Fail(string message)
        {
            StringBuilder b = new StringBuilder(64);

            b.Append(message);
            b.Append(" (latch = ").Append(latch.CurrentCount);
            b.Append(", values = ").Append(Volatile.Read(ref valueCount));
            long ec = Volatile.Read(ref errorCount);
            b.Append(", errors = ").Append(ec);
            b.Append(", completions = ").Append(Volatile.Read(ref completions));
            b.Append(", subscribed = ").Append(Volatile.Read(ref upstream) != null);
            b.Append(", cancelled = ").Append(SubscriptionHelper.IsCancelled(ref upstream));
            if (tag != null)
            {
                b.Append(", tag = ").Append(tag);
            }
            b.Append(")");

            InvalidOperationException ex;

            if (ec != 0)
            {
                if (ec == 1)
                {
                    ex = new InvalidOperationException(b.ToString(), errors[0]);
                }
                else
                {
                    ex = new InvalidOperationException(b.ToString(), new AggregateException(errors));
                }
            }
            else
            {
                ex = new InvalidOperationException(b.ToString());
            }
            return ex;
        }

19 Source : IntType.cs
with MIT License
from aloneguid

public override string ToString() {
      StringBuilder __sb = new StringBuilder("IntType(");
      __sb.Append(", BitWidth: ");
      __sb.Append(BitWidth);
      __sb.Append(", IsSigned: ");
      __sb.Append(IsSigned);
      __sb.Append(")");
      return __sb.ToString();
    }

19 Source : SortingColumn.cs
with MIT License
from aloneguid

public override string ToString() {
      StringBuilder __sb = new StringBuilder("SortingColumn(");
      __sb.Append(", Column_idx: ");
      __sb.Append(Column_idx);
      __sb.Append(", Descending: ");
      __sb.Append(Descending);
      __sb.Append(", Nulls_first: ");
      __sb.Append(Nulls_first);
      __sb.Append(")");
      return __sb.ToString();
    }

19 Source : TimestampType.cs
with MIT License
from aloneguid

public override string ToString() {
      StringBuilder __sb = new StringBuilder("TimestampType(");
      __sb.Append(", IsAdjustedToUTC: ");
      __sb.Append(IsAdjustedToUTC);
      __sb.Append(", Unit: ");
      __sb.Append(Unit== null ? "<null>" : Unit.ToString());
      __sb.Append(")");
      return __sb.ToString();
    }

19 Source : TimeType.cs
with MIT License
from aloneguid

public override string ToString() {
      StringBuilder __sb = new StringBuilder("TimeType(");
      __sb.Append(", IsAdjustedToUTC: ");
      __sb.Append(IsAdjustedToUTC);
      __sb.Append(", Unit: ");
      __sb.Append(Unit== null ? "<null>" : Unit.ToString());
      __sb.Append(")");
      return __sb.ToString();
    }

19 Source : AesGcmCtrV1.cs
with MIT License
from aloneguid

public override string ToString() {
      StringBuilder __sb = new StringBuilder("AesGcmCtrV1(");
      bool __first = true;
      if (Aad_prefix != null && __isset.aad_prefix) {
        if(!__first) { __sb.Append(", "); }
        __first = false;
        __sb.Append("Aad_prefix: ");
        __sb.Append(Aad_prefix);
      }
      if (Aad_file_unique != null && __isset.aad_file_unique) {
        if(!__first) { __sb.Append(", "); }
        __first = false;
        __sb.Append("Aad_file_unique: ");
        __sb.Append(Aad_file_unique);
      }
      if (__isset.supply_aad_prefix) {
        if(!__first) { __sb.Append(", "); }
        __first = false;
        __sb.Append("Supply_aad_prefix: ");
        __sb.Append(Supply_aad_prefix);
      }
      __sb.Append(")");
      return __sb.ToString();
    }

19 Source : AesGcmV1.cs
with MIT License
from aloneguid

public override string ToString() {
      StringBuilder __sb = new StringBuilder("AesGcmV1(");
      bool __first = true;
      if (Aad_prefix != null && __isset.aad_prefix) {
        if(!__first) { __sb.Append(", "); }
        __first = false;
        __sb.Append("Aad_prefix: ");
        __sb.Append(Aad_prefix);
      }
      if (Aad_file_unique != null && __isset.aad_file_unique) {
        if(!__first) { __sb.Append(", "); }
        __first = false;
        __sb.Append("Aad_file_unique: ");
        __sb.Append(Aad_file_unique);
      }
      if (__isset.supply_aad_prefix) {
        if(!__first) { __sb.Append(", "); }
        __first = false;
        __sb.Append("Supply_aad_prefix: ");
        __sb.Append(Supply_aad_prefix);
      }
      __sb.Append(")");
      return __sb.ToString();
    }

19 Source : DataPageHeaderV2.cs
with MIT License
from aloneguid

public override string ToString() {
      StringBuilder __sb = new StringBuilder("DataPageHeaderV2(");
      __sb.Append(", Num_values: ");
      __sb.Append(Num_values);
      __sb.Append(", Num_nulls: ");
      __sb.Append(Num_nulls);
      __sb.Append(", Num_rows: ");
      __sb.Append(Num_rows);
      __sb.Append(", Encoding: ");
      __sb.Append(Encoding);
      __sb.Append(", Definition_levels_byte_length: ");
      __sb.Append(Definition_levels_byte_length);
      __sb.Append(", Repereplacedion_levels_byte_length: ");
      __sb.Append(Repereplacedion_levels_byte_length);
      if (__isset.is_compressed) {
        __sb.Append(", Is_compressed: ");
        __sb.Append(Is_compressed);
      }
      if (Statistics != null && __isset.statistics) {
        __sb.Append(", Statistics: ");
        __sb.Append(Statistics== null ? "<null>" : Statistics.ToString());
      }
      __sb.Append(")");
      return __sb.ToString();
    }

19 Source : DictionaryPageHeader.cs
with MIT License
from aloneguid

public override string ToString() {
      StringBuilder __sb = new StringBuilder("DictionaryPageHeader(");
      __sb.Append(", Num_values: ");
      __sb.Append(Num_values);
      __sb.Append(", Encoding: ");
      __sb.Append(Encoding);
      if (__isset.is_sorted) {
        __sb.Append(", Is_sorted: ");
        __sb.Append(Is_sorted);
      }
      __sb.Append(")");
      return __sb.ToString();
    }

19 Source : Slide.cs
with MIT License
from AntonyCorbett

public string CreateSignature()
        {
            var sb = new StringBuilder();

            sb.Append(FadeInForward);
            sb.Append('|');
            sb.Append(FadeInReverse);
            sb.Append('|');
            sb.Append(FadeOutForward);
            sb.Append('|');
            sb.Append(FadeOutReverse);
            sb.Append('|');
            sb.Append(DwellTimeMilliseconds);
            sb.Append('|');
            sb.Append(ArchiveEntryName);
            sb.Append('|');
            sb.Append(OriginalFilePath);
            
            return sb.ToString();
        }

19 Source : SlidesConfig.cs
with MIT License
from AntonyCorbett

public string CreateSignature()
        {
            var sb = new StringBuilder();

            sb.Append(AutoPlay);
            sb.Append('|');
            sb.Append(AutoClose);
            sb.Append('|');
            sb.Append(DwellTimeMilliseconds);
            sb.Append('|');
            sb.Append(Loop);
            sb.Append('|');

            foreach (var slide in Slides)
            {
                sb.Append(slide.CreateSignature());
            }

            return sb.ToString();
        }

19 Source : LivingDexTests.cs
with MIT License
from architdate

public static string Status(Dictionary<GameVersion, Tuple<bool, int, int>> results, bool includeforms, bool shiny)
        {
            var sb = new StringBuilder();
            sb.Append("IncludeForms: ").Append(includeforms).Append(", SetShiny: ").Append(shiny).AppendLine();
            foreach (var (key, value) in results)
            {
                sb.Append(key).Append(" : Complete - ").Append(value.Item1).Append(" | Attempts - ").Append(value.Item2).Append(" | Generated - ").Append(value.Item3).AppendLine();
            }
            return sb.ToString();
        }

19 Source : CreatePdf.cs
with Apache License 2.0
from Autodesk-Forge

public override string ToString()
        {
            var sb = new StringBuilder();
            sb.Append("clreplaced CreatePdf {\n");
            sb.Append("  IncludeMarkups: ").Append(IncludeMarkups).Append("\n");
            sb.Append("  IncludeCallouts: ").Append(IncludeCallouts).Append("\n");
            sb.Append("  UrlType: ").Append(UrlType).Append("\n");
            sb.Append("  BaseUrl: ").Append(BaseUrl).Append("\n");
            sb.Append("}\n");
            return sb.ToString();
        }

19 Source : OutputAggregator.cs
with MIT License
from bartoszgolek

public void Write(bool value)
        {
            _stringBuilder.Append(value);
        }

19 Source : OutputAggregator.cs
with MIT License
from bartoszgolek

public void WriteLine(bool value)
        {
            _stringBuilder.Append(value);
            _stringBuilder.Append(System.Environment.NewLine);
        }

19 Source : Isolate.cs
with MIT License
from bitcake

private static void Serialize()
		{
			var sb = new System.Text.StringBuilder();
			foreach( var transformState in savedState )
			{
				if( transformState.Key != null )
				{
					sb.Append( transformState.Key.GetInstanceID() );
					sb.Append( ':' );
					sb.Append( transformState.Value );
					sb.Append( ',' );
				}
			}

			if( sb.Length > 1 )
			{
				sb.Remove( sb.Length - 1, 1 );
			}

			EditorPrefs.SetString( "Isolate", sb.ToString() );
		}

19 Source : ATNConfigSet.cs
with MIT License
from Butjok

public override String ToString()
		{
			StringBuilder buf = new StringBuilder();
			buf.Append('[');
			List<ATNConfig> cfgs = Elements;
			if (cfgs.Count > 0)
			{
				foreach (ATNConfig c in cfgs)
				{
					buf.Append(c.ToString());
					buf.Append(", ");
				}
				buf.Length = buf.Length - 2;
			}
			buf.Append(']');
			if (hreplacedemanticContext)
				buf.Append(",hreplacedemanticContext=")
				   .Append(hreplacedemanticContext);
			if (uniqueAlt != ATN.INVALID_ALT_NUMBER)
				buf.Append(",uniqueAlt=")
				   .Append(uniqueAlt);
			if (conflictingAlts != null)
				buf.Append(",conflictingAlts=")
				   .Append(conflictingAlts);
			if (dipsIntoOuterContext)
				buf.Append(",dipsIntoOuterContext");
			return buf.ToString();
		}

19 Source : AnimationsWidget.cs
with MIT License
from ByronMayne

protected override void PopulateHashBuilder(System.Text.StringBuilder hashBuilder)
		{
			base.PopulateHashBuilder(hashBuilder);
			hashBuilder.Append(m_GenerateClipNames);
			hashBuilder.Append(m_GenerateLayerNames);
			hashBuilder.Append(m_GenerateParamaters);
		}

19 Source : ForgeWidget.cs
with MIT License
from ByronMayne

protected virtual void PopulateHashBuilder(StringBuilder hashBuilder)
		{
			// Add all our components 
			for (int i = 0; i < m_Components.Count; i++)
			{
				m_Components[i].PopulateHashBuilder(hashBuilder);
			}
			// And our default values
			hashBuilder.Append(m_ScriptableForge.indentCount); 
			hashBuilder.Append(m_ClreplacedName);
			hashBuilder.Append(m_Namespace);
			hashBuilder.Append(m_replacedetHash);
			hashBuilder.Append(m_ScriptLocation); 
			hashBuilder.Append(true);  // Static Clreplaced  (placeholder) 
			hashBuilder.Append(false); // Partial Clreplaced (placeholder) 
		}

19 Source : EnumComponent.cs
with MIT License
from ByronMayne

public override void PopulateHashBuilder(StringBuilder hashBuilder)
        {
			hashBuilder.Append(m_CreateEnum);
			hashBuilder.Append(m_EnumName);
        }

19 Source : SqlWriter.cs
with GNU Lesser General Public License v3.0
from CarefreeXT

public void Write(bool value) => writer.Append(value);

19 Source : MessageFormatter.cs
with Apache License 2.0
from cdy816

static void BooleanArrayAppend(StringBuilder sbuf, bool[] a)
        {
            sbuf.Append('[');
            int len = a.Length;
            for (int i = 0; i < len; i++)
            {
                sbuf.Append(a[i]);
                if (i != len - 1)
                {
                    sbuf.Append(", ");
                }
            }
            sbuf.Append(']');
        }

19 Source : Program.cs
with MIT License
from CefNet

private static void TestV8ValueTypes(CefFrame frame)
		{
			var sb = new StringBuilder();
			CefV8Context context = frame.V8Context;
			if (!context.Enter())
				return;
			try
			{
				sb.Append("typeof 1 = ").Append(context.Eval("1", null).Type).AppendLine();
				sb.Append("typeof true = ").Append(context.Eval("true", null).Type).AppendLine();
				sb.Append("typeof 'string' = ").Append(context.Eval("'string'", null).Type).AppendLine();
				sb.Append("typeof 2.2 = ").Append(context.Eval("2.2", null).Type).AppendLine();
				sb.Append("typeof null = ").Append(context.Eval("null", null).Type).AppendLine();
				sb.Append("typeof new Object() = ").Append(context.Eval("new Object()", null).Type).AppendLine();
				sb.Append("typeof undefined = ").Append(context.Eval("undefined", null).Type).AppendLine();
				sb.Append("typeof new Date() = ").Append(context.Eval("new Date()", null).Type).AppendLine();
				sb.Append("(window == window) = ").Append(context.Eval("window", null) == context.Eval("window", null)).AppendLine();
			}
			finally
			{
				context.Exit();
			}
			var message = new CefProcessMessage("MessageBox.Show");
			message.ArgumentList.SetString(0, sb.ToString());
			frame.SendProcessMessage(CefProcessId.Browser, message);
		}

19 Source : ProjectGeneration.cs
with MIT License
from chstetco

static void GetProjectHeaderTemplate(
            StringBuilder builder,
            string replacedemblyGUID,
            string replacedemblyName,
            string defines,
            bool allowUnsafe,
            string replacedyzerBlock
        )
        {
            builder.Append(@"<?xml version=""1.0"" encoding=""utf-8""?>").Append(k_WindowsNewline);
            builder.Append(@"<Project ToolsVersion=""").Append(k_ToolsVersion).Append(@""" DefaultTargets=""Build"" xmlns=""").Append(MSBuildNamespaceUri).Append(@""">").Append(k_WindowsNewline);
            builder.Append(@"  <PropertyGroup>").Append(k_WindowsNewline);
            builder.Append(@"    <LangVersion>").Append(k_TargetLanguageVersion).Append("</LangVersion>").Append(k_WindowsNewline);
            builder.Append(@"  </PropertyGroup>").Append(k_WindowsNewline);
            builder.Append(@"  <PropertyGroup>").Append(k_WindowsNewline);
            builder.Append(@"    <Configuration Condition="" '$(Configuration)' == '' "">Debug</Configuration>").Append(k_WindowsNewline);
            builder.Append(@"    <Platform Condition="" '$(Platform)' == '' "">AnyCPU</Platform>").Append(k_WindowsNewline);
            builder.Append(@"    <ProductVersion>").Append(k_ProductVersion).Append("</ProductVersion>").Append(k_WindowsNewline);
            builder.Append(@"    <SchemaVersion>2.0</SchemaVersion>").Append(k_WindowsNewline);
            builder.Append(@"    <RootNamespace>").Append(EditorSettings.projectGenerationRootNamespace).Append("</RootNamespace>").Append(k_WindowsNewline);
            builder.Append(@"    <ProjectGuid>{").Append(replacedemblyGUID).Append("}</ProjectGuid>").Append(k_WindowsNewline);
            builder.Append(@"    <OutputType>Library</OutputType>").Append(k_WindowsNewline);
            builder.Append(@"    <AppDesignerFolder>Properties</AppDesignerFolder>").Append(k_WindowsNewline);
            builder.Append(@"    <replacedemblyName>").Append(replacedemblyName).Append("</replacedemblyName>").Append(k_WindowsNewline);
            builder.Append(@"    <TargetFrameworkVersion>").Append(k_TargetFrameworkVersion).Append("</TargetFrameworkVersion>").Append(k_WindowsNewline);
            builder.Append(@"    <FileAlignment>512</FileAlignment>").Append(k_WindowsNewline);
            builder.Append(@"    <BaseDirectory>").Append(k_BaseDirectory).Append("</BaseDirectory>").Append(k_WindowsNewline);
            builder.Append(@"  </PropertyGroup>").Append(k_WindowsNewline);
            builder.Append(@"  <PropertyGroup Condition="" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "">").Append(k_WindowsNewline);
            builder.Append(@"    <DebugSymbols>true</DebugSymbols>").Append(k_WindowsNewline);
            builder.Append(@"    <DebugType>full</DebugType>").Append(k_WindowsNewline);
            builder.Append(@"    <Optimize>false</Optimize>").Append(k_WindowsNewline);
            builder.Append(@"    <OutputPath>Temp\bin\Debug\</OutputPath>").Append(k_WindowsNewline);
            builder.Append(@"    <DefineConstants>").Append(defines).Append("</DefineConstants>").Append(k_WindowsNewline);
            builder.Append(@"    <ErrorReport>prompt</ErrorReport>").Append(k_WindowsNewline);
            builder.Append(@"    <WarningLevel>4</WarningLevel>").Append(k_WindowsNewline);
            builder.Append(@"    <NoWarn>0169</NoWarn>").Append(k_WindowsNewline);
            builder.Append(@"    <AllowUnsafeBlocks>").Append(allowUnsafe).Append("</AllowUnsafeBlocks>").Append(k_WindowsNewline);
            builder.Append(@"  </PropertyGroup>").Append(k_WindowsNewline);
            builder.Append(@"  <PropertyGroup>").Append(k_WindowsNewline);
            builder.Append(@"    <NoConfig>true</NoConfig>").Append(k_WindowsNewline);
            builder.Append(@"    <NoStdLib>true</NoStdLib>").Append(k_WindowsNewline);
            builder.Append(@"    <AddAdditionalExplicitreplacedemblyReferences>false</AddAdditionalExplicitreplacedemblyReferences>").Append(k_WindowsNewline);
            builder.Append(@"    <ImplicitlyExpandNETStandardFacades>false</ImplicitlyExpandNETStandardFacades>").Append(k_WindowsNewline);
            builder.Append(@"    <ImplicitlyExpandDesignTimeFacades>false</ImplicitlyExpandDesignTimeFacades>").Append(k_WindowsNewline);
            builder.Append(@"  </PropertyGroup>").Append(k_WindowsNewline);
            builder.Append(replacedyzerBlock);
            builder.Append(@"  <ItemGroup>").Append(k_WindowsNewline);
        }

19 Source : GetReportListByNextTokenResult.cs
with Apache License 2.0
from claytondus

protected internal String ToXMLFragment() {
            StringBuilder xml = new StringBuilder();
            if (IsSetNextToken()) {
                xml.Append("<NextToken>");
                xml.Append(EscapeXML(this.NextToken));
                xml.Append("</NextToken>");
            }
            if (IsSetHasNext()) {
                xml.Append("<HasNext>");
                xml.Append(this.HasNext);
                xml.Append("</HasNext>");
            }
            List<ReportInfo> reportInfoList = this.ReportInfo;
            foreach (ReportInfo reportInfo in reportInfoList) {
                xml.Append("<ReportInfo>");
                xml.Append(reportInfo.ToXMLFragment());
                xml.Append("</ReportInfo>");
            }
            return xml.ToString();
        }

19 Source : GetFeedSubmissionListByNextTokenResult.cs
with Apache License 2.0
from claytondus

protected internal String ToXMLFragment() {
            StringBuilder xml = new StringBuilder();
            if (IsSetNextToken()) {
                xml.Append("<NextToken>");
                xml.Append(EscapeXML(this.NextToken));
                xml.Append("</NextToken>");
            }
            if (IsSetHasNext()) {
                xml.Append("<HasNext>");
                xml.Append(this.HasNext);
                xml.Append("</HasNext>");
            }
            List<FeedSubmissionInfo> feedSubmissionInfoList = this.FeedSubmissionInfo;
            foreach (FeedSubmissionInfo feedSubmissionInfo in feedSubmissionInfoList) {
                xml.Append("<FeedSubmissionInfo>");
                xml.Append(feedSubmissionInfo.ToXMLFragment());
                xml.Append("</FeedSubmissionInfo>");
            }
            return xml.ToString();
        }

19 Source : GetReportRequestListByNextTokenResult.cs
with Apache License 2.0
from claytondus

protected internal String ToXMLFragment() {
            StringBuilder xml = new StringBuilder();
            if (IsSetNextToken()) {
                xml.Append("<NextToken>");
                xml.Append(EscapeXML(this.NextToken));
                xml.Append("</NextToken>");
            }
            if (IsSetHasNext()) {
                xml.Append("<HasNext>");
                xml.Append(this.HasNext);
                xml.Append("</HasNext>");
            }
            List<ReportRequestInfo> reportRequestInfoList = this.ReportRequestInfo;
            foreach (ReportRequestInfo reportRequestInfo in reportRequestInfoList) {
                xml.Append("<ReportRequestInfo>");
                xml.Append(reportRequestInfo.ToXMLFragment());
                xml.Append("</ReportRequestInfo>");
            }
            return xml.ToString();
        }

19 Source : GetReportScheduleListByNextTokenResult.cs
with Apache License 2.0
from claytondus

protected internal String ToXMLFragment() {
            StringBuilder xml = new StringBuilder();
            if (IsSetNextToken()) {
                xml.Append("<NextToken>");
                xml.Append(EscapeXML(this.NextToken));
                xml.Append("</NextToken>");
            }
            if (IsSetHasNext()) {
                xml.Append("<HasNext>");
                xml.Append(this.HasNext);
                xml.Append("</HasNext>");
            }
            List<ReportSchedule> reportScheduleList = this.ReportSchedule;
            foreach (ReportSchedule reportSchedule in reportScheduleList) {
                xml.Append("<ReportSchedule>");
                xml.Append(reportSchedule.ToXMLFragment());
                xml.Append("</ReportSchedule>");
            }
            return xml.ToString();
        }

19 Source : Report.cs
with Apache License 2.0
from claytondus

protected internal String ToXMLFragment() {
            StringBuilder xml = new StringBuilder();
            if (IsSetReportId()) {
                xml.Append("<ReportId>");
                xml.Append(EscapeXML(this.ReportId));
                xml.Append("</ReportId>");
            }
            if (IsSetReportType()) {
                xml.Append("<ReportType>");
                xml.Append(EscapeXML(this.ReportType));
                xml.Append("</ReportType>");
            }
            if (IsSetReportRequestId()) {
                xml.Append("<ReportRequestId>");
                xml.Append(EscapeXML(this.ReportRequestId));
                xml.Append("</ReportRequestId>");
            }
            if (IsSetAvailableDate()) {
                xml.Append("<AvailableDate>");
                xml.Append(this.AvailableDate);
                xml.Append("</AvailableDate>");
            }
            if (IsSetAcknowledged()) {
                xml.Append("<Acknowledged>");
                xml.Append(this.Acknowledged);
                xml.Append("</Acknowledged>");
            }
            if (IsSetAckowledgedDate()) {
                xml.Append("<AckowledgedDate>");
                xml.Append(this.AckowledgedDate);
                xml.Append("</AckowledgedDate>");
            }
            return xml.ToString();
        }

19 Source : ReportInfo.cs
with Apache License 2.0
from claytondus

protected internal String ToXMLFragment() {
            StringBuilder xml = new StringBuilder();
            if (IsSetReportId()) {
                xml.Append("<ReportId>");
                xml.Append(EscapeXML(this.ReportId));
                xml.Append("</ReportId>");
            }
            if (IsSetReportType()) {
                xml.Append("<ReportType>");
                xml.Append(EscapeXML(this.ReportType));
                xml.Append("</ReportType>");
            }
            if (IsSetReportRequestId()) {
                xml.Append("<ReportRequestId>");
                xml.Append(EscapeXML(this.ReportRequestId));
                xml.Append("</ReportRequestId>");
            }
            if (IsSetAvailableDate()) {
                xml.Append("<AvailableDate>");
                xml.Append(this.AvailableDate);
                xml.Append("</AvailableDate>");
            }
            if (IsSetAcknowledged()) {
                xml.Append("<Acknowledged>");
                xml.Append(this.Acknowledged);
                xml.Append("</Acknowledged>");
            }
            if (IsSetAcknowledgedDate()) {
                xml.Append("<AcknowledgedDate>");
                xml.Append(this.AcknowledgedDate);
                xml.Append("</AcknowledgedDate>");
            }
            return xml.ToString();
        }

19 Source : ReportRequestInfo.cs
with Apache License 2.0
from claytondus

protected internal String ToXMLFragment() {
            StringBuilder xml = new StringBuilder();
            if (IsSetReportRequestId()) {
                xml.Append("<ReportRequestId>");
                xml.Append(EscapeXML(this.ReportRequestId));
                xml.Append("</ReportRequestId>");
            }
            if (IsSetReportType()) {
                xml.Append("<ReportType>");
                xml.Append(EscapeXML(this.ReportType));
                xml.Append("</ReportType>");
            }
            if (IsSetStartDate()) {
                xml.Append("<StartDate>");
                xml.Append(this.StartDate);
                xml.Append("</StartDate>");
            }
            if (IsSetEndDate()) {
                xml.Append("<EndDate>");
                xml.Append(this.EndDate);
                xml.Append("</EndDate>");
            }
            if (IsSetScheduled()) {
                xml.Append("<Scheduled>");
                xml.Append(this.Scheduled);
                xml.Append("</Scheduled>");
            }
            if (IsSetSubmittedDate()) {
                xml.Append("<SubmittedDate>");
                xml.Append(this.SubmittedDate);
                xml.Append("</SubmittedDate>");
            }
            if (IsSetReportProcessingStatus()) {
                xml.Append("<ReportProcessingStatus>");
                xml.Append(EscapeXML(this.ReportProcessingStatus));
                xml.Append("</ReportProcessingStatus>");
            }
            if (IsSetGeneratedReportId()) {
                xml.Append("<GeneratedReportId>");
                xml.Append(EscapeXML(this.GeneratedReportId));
                xml.Append("</GeneratedReportId>");
            }
            if (IsSetStartedProcessingDate()) {
                xml.Append("<StartedProcessingDate>");
                xml.Append(this.StartedProcessingDate);
                xml.Append("</StartedProcessingDate>");
            }
            if (IsSetCompletedDate()) {
                xml.Append("<CompletedDate>");
                xml.Append(this.CompletedDate);
                xml.Append("</CompletedDate>");
            }
            return xml.ToString();
        }

19 Source : ProjectGeneration.cs
with MIT License
from CodeStarrk

static void GetProjectHeaderTemplate(
            StringBuilder builder,
            string replacedemblyGUID,
            string replacedemblyName,
            string defines,
            bool allowUnsafe
        )
        {
            builder.Append(@"<?xml version=""1.0"" encoding=""utf-8""?>").Append(k_WindowsNewline);
            builder.Append(@"<Project ToolsVersion=""").Append(k_ToolsVersion).Append(@""" DefaultTargets=""Build"" xmlns=""").Append(MSBuildNamespaceUri).Append(@""">").Append(k_WindowsNewline);
            builder.Append(@"  <PropertyGroup>").Append(k_WindowsNewline);
            builder.Append(@"    <LangVersion>").Append(k_TargetLanguageVersion).Append("</LangVersion>").Append(k_WindowsNewline);
            builder.Append(@"  </PropertyGroup>").Append(k_WindowsNewline);
            builder.Append(@"  <PropertyGroup>").Append(k_WindowsNewline);
            builder.Append(@"    <Configuration Condition="" '$(Configuration)' == '' "">Debug</Configuration>").Append(k_WindowsNewline);
            builder.Append(@"    <Platform Condition="" '$(Platform)' == '' "">AnyCPU</Platform>").Append(k_WindowsNewline);
            builder.Append(@"    <ProductVersion>").Append(k_ProductVersion).Append("</ProductVersion>").Append(k_WindowsNewline);
            builder.Append(@"    <SchemaVersion>2.0</SchemaVersion>").Append(k_WindowsNewline);
            builder.Append(@"    <RootNamespace>").Append(EditorSettings.projectGenerationRootNamespace).Append("</RootNamespace>").Append(k_WindowsNewline);
            builder.Append(@"    <ProjectGuid>{").Append(replacedemblyGUID).Append("}</ProjectGuid>").Append(k_WindowsNewline);
            builder.Append(@"    <OutputType>Library</OutputType>").Append(k_WindowsNewline);
            builder.Append(@"    <AppDesignerFolder>Properties</AppDesignerFolder>").Append(k_WindowsNewline);
            builder.Append(@"    <replacedemblyName>").Append(replacedemblyName).Append("</replacedemblyName>").Append(k_WindowsNewline);
            builder.Append(@"    <TargetFrameworkVersion>").Append(k_TargetFrameworkVersion).Append("</TargetFrameworkVersion>").Append(k_WindowsNewline);
            builder.Append(@"    <FileAlignment>512</FileAlignment>").Append(k_WindowsNewline);
            builder.Append(@"    <BaseDirectory>").Append(k_BaseDirectory).Append("</BaseDirectory>").Append(k_WindowsNewline);
            builder.Append(@"  </PropertyGroup>").Append(k_WindowsNewline);
            builder.Append(@"  <PropertyGroup Condition="" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "">").Append(k_WindowsNewline);
            builder.Append(@"    <DebugSymbols>true</DebugSymbols>").Append(k_WindowsNewline);
            builder.Append(@"    <DebugType>full</DebugType>").Append(k_WindowsNewline);
            builder.Append(@"    <Optimize>false</Optimize>").Append(k_WindowsNewline);
            builder.Append(@"    <OutputPath>Temp\bin\Debug\</OutputPath>").Append(k_WindowsNewline);
            builder.Append(@"    <DefineConstants>").Append(defines).Append("</DefineConstants>").Append(k_WindowsNewline);
            builder.Append(@"    <ErrorReport>prompt</ErrorReport>").Append(k_WindowsNewline);
            builder.Append(@"    <WarningLevel>4</WarningLevel>").Append(k_WindowsNewline);
            builder.Append(@"    <NoWarn>0169</NoWarn>").Append(k_WindowsNewline);
            builder.Append(@"    <AllowUnsafeBlocks>").Append(allowUnsafe).Append("</AllowUnsafeBlocks>").Append(k_WindowsNewline);
            builder.Append(@"  </PropertyGroup>").Append(k_WindowsNewline);
            builder.Append(@"  <PropertyGroup Condition="" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "">").Append(k_WindowsNewline);
            builder.Append(@"    <DebugType>pdbonly</DebugType>").Append(k_WindowsNewline);
            builder.Append(@"    <Optimize>true</Optimize>").Append(k_WindowsNewline);
            builder.Append(@"    <OutputPath>Temp\bin\Release\</OutputPath>").Append(k_WindowsNewline);
            builder.Append(@"    <ErrorReport>prompt</ErrorReport>").Append(k_WindowsNewline);
            builder.Append(@"    <WarningLevel>4</WarningLevel>").Append(k_WindowsNewline);
            builder.Append(@"    <NoWarn>0169</NoWarn>").Append(k_WindowsNewline);
            builder.Append(@"    <AllowUnsafeBlocks>").Append(allowUnsafe).Append("</AllowUnsafeBlocks>").Append(k_WindowsNewline);
            builder.Append(@"  </PropertyGroup>").Append(k_WindowsNewline);
            builder.Append(@"  <PropertyGroup>").Append(k_WindowsNewline);
            builder.Append(@"    <NoConfig>true</NoConfig>").Append(k_WindowsNewline);
            builder.Append(@"    <NoStdLib>true</NoStdLib>").Append(k_WindowsNewline);
            builder.Append(@"    <AddAdditionalExplicitreplacedemblyReferences>false</AddAdditionalExplicitreplacedemblyReferences>").Append(k_WindowsNewline);
            builder.Append(@"    <ImplicitlyExpandNETStandardFacades>false</ImplicitlyExpandNETStandardFacades>").Append(k_WindowsNewline);
            builder.Append(@"    <ImplicitlyExpandDesignTimeFacades>false</ImplicitlyExpandDesignTimeFacades>").Append(k_WindowsNewline);
            builder.Append(@"  </PropertyGroup>").Append(k_WindowsNewline);
            builder.Append(@"  <ItemGroup>").Append(k_WindowsNewline);
        }

19 Source : PositionData.cs
with MIT License
from coinapi

public override string ToString()
        {
            var sb = new StringBuilder();
            sb.Append("clreplaced PositionData {\n");
            sb.Append("  SymbolIdExchange: ").Append(SymbolIdExchange).Append("\n");
            sb.Append("  SymbolIdCoinapi: ").Append(SymbolIdCoinapi).Append("\n");
            sb.Append("  AvgEntryPrice: ").Append(AvgEntryPrice).Append("\n");
            sb.Append("  Quanreplacedy: ").Append(Quanreplacedy).Append("\n");
            sb.Append("  Side: ").Append(Side).Append("\n");
            sb.Append("  UnrealizedPnl: ").Append(UnrealizedPnl).Append("\n");
            sb.Append("  Leverage: ").Append(Leverage).Append("\n");
            sb.Append("  CrossMargin: ").Append(CrossMargin).Append("\n");
            sb.Append("  LiquidationPrice: ").Append(LiquidationPrice).Append("\n");
            sb.Append("  RawData: ").Append(RawData).Append("\n");
            sb.Append("}\n");
            return sb.ToString();
        }

19 Source : DiscordRateLimitBucket.cs
with MIT License
from Color-Chan

public override string ToString()
        {
            var stringBuilder = new StringBuilder();
            stringBuilder.Append('{');

            stringBuilder.Append("isGlobal: ");
            stringBuilder.Append(IsGlobal);
            AddSpace(stringBuilder);

            stringBuilder.Append("limit: ");
            stringBuilder.Append(Limit);
            AddSpace(stringBuilder);

            stringBuilder.Append("remaining: ");
            stringBuilder.Append(Remaining);
            AddSpace(stringBuilder);

            stringBuilder.Append("isGlobal: ");
            stringBuilder.Append(IsGlobal);
            AddSpace(stringBuilder);

            stringBuilder.Append("resetAt: ");
            stringBuilder.Append(ResetsAt.ToString());
            AddSpace(stringBuilder);

            stringBuilder.Append("resetAfter: ");
            stringBuilder.Append(ResetsAfter.ToString());
            AddSpace(stringBuilder);

            stringBuilder.Append("id: ");
            stringBuilder.Append(Id);

            stringBuilder.Append('}');

            static void AddSpace(StringBuilder builder)
            {
                builder.Append(", ");
            }

            return stringBuilder.ToString();
        }

19 Source : GameCloudEditorInitProjectInfo.cs
with MIT License
from CragonGame

public static string getFormatProjectInfo(_InitProjectInfo project_info)
    {
        StringBuilder sb = new StringBuilder();
        sb.AppendLine("{");
        sb.Append("    \"ProjectIndex\" : ");
        sb.Append(project_info.ProjectIndex);
        sb.Append(",");
        sb.AppendLine();
        sb.Append("    \"IsDefault\" : \"");
        sb.Append(project_info.IsDefault);
        sb.Append("\",");
        sb.AppendLine();
        sb.Append("    \"CompanyName\" : \"");
        sb.Append(project_info.CompanyName);
        sb.Append("\",");
        sb.AppendLine();
        sb.Append("    \"AppName\" : \"");
        sb.Append(project_info.AppName);
        sb.Append("\",");
        sb.AppendLine();
        sb.Append("    \"BundleIdentify\" : \"");
        sb.Append(project_info.BundleIdentify);
        sb.Append("\",");
        sb.AppendLine();
        sb.Append("    \"InitBundleVersion\" : \"");
        sb.Append(project_info.InitBundleVersion);
        sb.Append("\",");
        sb.AppendLine();
        sb.Append("    \"InitDataVersion\" : \"");
        sb.Append(project_info.InitDataVersion);
        sb.Append("\",");
        sb.AppendLine();
        sb.Append("    \"ProjectSourceFolderName\" : \"");
        sb.Append(project_info.ProjectSourceFolderName);
        sb.Append("\",");
        sb.AppendLine();
        sb.Append("}");

        return sb.ToString();
    }

19 Source : MessageFormatter.cs
with MIT License
from cuteant

static void BooleanArrayAppend(StringBuilder sbuf, bool[] a)
        {
            _ = sbuf.Append('[');
            int len = a.Length;
            for (int i = 0; i < len; i++)
            {
                _ = sbuf.Append(a[i]);
                if (i != len - 1)
                {
                    _ = sbuf.Append(", ");
                }
            }
            _ = sbuf.Append(']');
        }

19 Source : ChannelOutboundBufferTest.cs
with MIT License
from cuteant

public override void ChannelWritabilityChanged(IChannelHandlerContext context)
            {
                _buf.Append(context.Channel.IsWritable);
                _buf.Append(' ');
            }

19 Source : ImageInput.xaml.cs
with MIT License
from czh098tom

private static void ReadHGEFormat(BinaryReader sr, StringBuilder sb)
        {
            sb.Append("Default index: ");
            sb.Append(sr.ReadByte());
            sr.ReadByte();
            sb.Append("\nBlend mode: ");
            sb.Append(sr.ReadByte());
            sr.ReadByte();
            sb.Append("\nEmission: ");
            sb.Append(sr.ReadInt32());
            sb.Append(" p/sec\nSystem life time: ");
            float f = sr.ReadSingle();
            sb.Append(f == -1 ? "infinite" : f.ToString());
            sb.Append(" sec\n\nParticle life time: ");
            sb.Append(sr.ReadSingle());
            sb.Append(" ~ ");
            sb.Append(sr.ReadSingle());
            sb.Append(" sec\n\nDirection: ");
            sb.Append(sr.ReadSingle());
            sb.Append(" deg\nSpread: ");
            sb.Append(sr.ReadSingle());
            sb.Append(" deg\nIs relative: ");
            sb.Append(sr.ReadBoolean());
            sr.ReadByte();
            sr.ReadByte();
            sr.ReadByte();
            sb.Append("\n\nSpeed Range: ");
            sb.Append(sr.ReadSingle());
            sb.Append(" ~ ");
            sb.Append(sr.ReadSingle());
            sb.Append("\nGravity Range: ");
            sb.Append(sr.ReadSingle());
            sb.Append(" ~ ");
            sb.Append(sr.ReadSingle());
            sb.Append("\nRadial Acceleration Range: ");
            sb.Append(sr.ReadSingle());
            sb.Append(" ~ ");
            sb.Append(sr.ReadSingle());
            sb.Append("\nTangential Acceleration Range: ");
            sb.Append(sr.ReadSingle());
            sb.Append(" ~ ");
            sb.Append(sr.ReadSingle());
            sb.Append("\n\nSize: ");
            sb.Append(sr.ReadSingle());
            sb.Append(" -> ");
            sb.Append(sr.ReadSingle());
            sb.Append(" variation: ");
            sb.Append(sr.ReadSingle());
            sb.Append("\nSpin: ");
            sb.Append(sr.ReadSingle());
            sb.Append(" -> ");
            sb.Append(sr.ReadSingle());
            sb.Append(" variation: ");
            sb.Append(sr.ReadSingle());
            sb.Append("\nColor: ");
            sb.Append(Convert.ToInt32(sr.ReadSingle() * 255));
            sb.Append(" ");
            sb.Append(Convert.ToInt32(sr.ReadSingle() * 255));
            sb.Append(" ");
            sb.Append(Convert.ToInt32(sr.ReadSingle() * 255));
            sb.Append(" -> ");
            sb.Append(Convert.ToInt32(sr.ReadSingle() * 255));
            sb.Append(" ");
            sb.Append(Convert.ToInt32(sr.ReadSingle() * 255));
            sb.Append(" ");
            sb.Append(Convert.ToInt32(sr.ReadSingle() * 255));
            sb.Append("\ncolor variation: ");
            sb.Append(sr.ReadSingle());
            sb.Append("\nalpha variation: ");
            sb.Append(sr.ReadSingle());
        }

19 Source : MAJANService.cs
with MIT License
from Daimler

public override string ToString() {
        StringBuilder __sb = new StringBuilder("DeleteAgent_result(");
        bool __first = true;
        if (__isset.success) {
          if(!__first) { __sb.Append(", "); }
          __first = false;
          __sb.Append("Success: ");
          __sb.Append(Success);
        }
        __sb.Append(")");
        return __sb.ToString();
      }

19 Source : MAttachmentManipulation.cs
with MIT License
from Daimler

public override string ToString() {
      StringBuilder __sb = new StringBuilder("MAttachmentManipulation(");
      __sb.Append(", Parent: ");
      __sb.Append(Parent);
      __sb.Append(", Child: ");
      __sb.Append(Child);
      __sb.Append(", AddRemove: ");
      __sb.Append(AddRemove);
      if (Type != null && __isset.Type) {
        __sb.Append(", Type: ");
        __sb.Append(Type);
      }
      __sb.Append(")");
      return __sb.ToString();
    }

19 Source : MBoolResponse.cs
with MIT License
from Daimler

public override string ToString() {
      StringBuilder __sb = new StringBuilder("MBoolResponse(");
      __sb.Append(", Successful: ");
      __sb.Append(Successful);
      if (LogData != null && __isset.LogData) {
        __sb.Append(", LogData: ");
        __sb.Append(LogData);
      }
      __sb.Append(")");
      return __sb.ToString();
    }

19 Source : MIKServiceResult.cs
with MIT License
from Daimler

public override string ToString() {
      StringBuilder __sb = new StringBuilder("MIKServiceResult(");
      __sb.Append(", Posture: ");
      __sb.Append(Posture== null ? "<null>" : Posture.ToString());
      __sb.Append(", Success: ");
      __sb.Append(Success);
      __sb.Append(", Error: ");
      __sb.Append(Error);
      __sb.Append(")");
      return __sb.ToString();
    }

19 Source : MCollisionDetectionService.cs
with MIT License
from Daimler

public override string ToString() {
        StringBuilder __sb = new StringBuilder("CausesCollision_result(");
        bool __first = true;
        if (__isset.success) {
          if(!__first) { __sb.Append(", "); }
          __first = false;
          __sb.Append("Success: ");
          __sb.Append(Success);
        }
        __sb.Append(")");
        return __sb.ToString();
      }

19 Source : MPropertyManipulation.cs
with MIT License
from Daimler

public override string ToString() {
      StringBuilder __sb = new StringBuilder("MPropertyManipulation(");
      __sb.Append(", Target: ");
      __sb.Append(Target);
      __sb.Append(", Key: ");
      __sb.Append(Key);
      __sb.Append(", AddRemove: ");
      __sb.Append(AddRemove);
      if (Value != null && __isset.@Value) {
        __sb.Append(", Value: ");
        __sb.Append(Value);
      }
      __sb.Append(")");
      return __sb.ToString();
    }

19 Source : MGraspPoseService.cs
with MIT License
from Daimler

public override string ToString() {
        StringBuilder __sb = new StringBuilder("GetGraspPoses_args(");
        bool __first = true;
        if (Posture != null && __isset.posture) {
          if(!__first) { __sb.Append(", "); }
          __first = false;
          __sb.Append("Posture: ");
          __sb.Append(Posture== null ? "<null>" : Posture.ToString());
        }
        if (__isset.handType) {
          if(!__first) { __sb.Append(", "); }
          __first = false;
          __sb.Append("HandType: ");
          __sb.Append(HandType);
        }
        if (SceneObject != null && __isset.sceneObject) {
          if(!__first) { __sb.Append(", "); }
          __first = false;
          __sb.Append("SceneObject: ");
          __sb.Append(SceneObject== null ? "<null>" : SceneObject.ToString());
        }
        if (__isset.repositionHand) {
          if(!__first) { __sb.Append(", "); }
          __first = false;
          __sb.Append("RepositionHand: ");
          __sb.Append(RepositionHand);
        }
        __sb.Append(")");
        return __sb.ToString();
      }

19 Source : MParameter.cs
with MIT License
from Daimler

public override string ToString() {
      StringBuilder __sb = new StringBuilder("MParameter(");
      __sb.Append(", Name: ");
      __sb.Append(Name);
      __sb.Append(", Type: ");
      __sb.Append(Type);
      __sb.Append(", Description: ");
      __sb.Append(Description);
      __sb.Append(", Required: ");
      __sb.Append(Required);
      __sb.Append(")");
      return __sb.ToString();
    }

See More Examples