以下の内容はhttps://baba-s.hatenablog.com/entry/2022/09/10/193303より取得しました。


【Unity】string.Join を簡単に書けるようにするソーステンプレート

ソースコード

#if UNITY_EDITOR

using System;
using System.Collections.Generic;
using JetBrains.Annotations;

// ReSharper disable IdentifierTypo
// ReSharper disable InconsistentNaming

namespace Kogane
{
    [PublicAPI]
    [Obsolete( "", true )]
    public static class SourceTemplateCollection
    {
        [SourceTemplate]
        [Macro( Target = "separator" )]
        [Macro( Target = "variable" )]
        public static void join( this IEnumerable<string> self )
        {
            /*$ var $variable$ = string.Join( "$separator$", self ); */
        }
    }
}

#endif

使用例




以上の内容はhttps://baba-s.hatenablog.com/entry/2022/09/10/193303より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14