{"author_name":"baba_s","blog_url":"https://baba-s.hatenablog.com/","provider_url":"https://hatena.blog","width":"100%","author_url":"https://blog.hatena.ne.jp/baba_s/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbaba-s.hatenablog.com%2Fentry%2F2014%2F07%2F03%2F100719\" title=\"\u3010C#\u3011 \u6570\u5024\u3092\u52a0\u7b97\u3057\u3066\u3001\u7bc4\u56f2\u3092\u8d85\u3048\u305f\u5206\u306f 0 \u304b\u3089\u306e\u5024\u3068\u3057\u3066\u51e6\u7406\u3057\u3066\u8fd4\u3059\u62e1\u5f35\u30e1\u30bd\u30c3\u30c9 - \u30b3\u30ac\u30cd\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"\u3010C#\u3011 \u6570\u5024\u3092\u52a0\u7b97\u3057\u3066\u3001\u7bc4\u56f2\u3092\u8d85\u3048\u305f\u5206\u306f 0 \u304b\u3089\u306e\u5024\u3068\u3057\u3066\u51e6\u7406\u3057\u3066\u8fd4\u3059\u62e1\u5f35\u30e1\u30bd\u30c3\u30c9","published":"2014-07-03 10:07:19","provider_name":"Hatena Blog","url":"https://baba-s.hatenablog.com/entry/2014/07/03/100719","blog_title":"\u30b3\u30ac\u30cd\u30d6\u30ed\u30b0","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/b/baba_s/20180826/20180826160156.png","description":"\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9 /// <summary> /// int \u578b\u306e\u62e1\u5f35\u30e1\u30bd\u30c3\u30c9\u3092\u7ba1\u7406\u3059\u308b\u30af\u30e9\u30b9 /// </summary> public static class IntExtensions { /// <summary> /// \u6570\u5024\u3092\u52a0\u7b97\u3057\u3066\u3001\u7bc4\u56f2\u3092\u8d85\u3048\u305f\u5206\u306f 0 \u304b\u3089\u306e\u5024\u3068\u3057\u3066\u51e6\u7406\u3057\u3066\u8fd4\u3057\u307e\u3059 /// </summary> public static int Repeat(this int self, int value, int max) { return (self + value + max) % max; } } \u4f7f\u3044\u65b9 int index = 0; int max = 3; in\u2026","type":"rich","height":"190","version":"1.0","categories":["C#","C# - \u62e1\u5f35\u30e1\u30bd\u30c3\u30c9"]}