Beauty Salon α-BET (alphabet)

space001
Blender3d Collada dae modeling Use Papervision3d on Progression3 and 4 http://a-bet.secret.jp/#/access
more whaison works.
whaison space
space002
http://whaison.jugem.jp/ https://jp.pinterest.com/whaison/ https://www.instagram.com/whaison/ https://whaison.amebaownd.com/
https://suzuri.jp/whaison
http://whaison.blogspot.com/
http://whaison.tumblr.com/ http://qiita.com/users/whaison http://www.behance.net/whaison https://github.com/whaison/ https://bitbucket.org/whaison http://serato.com/user/whaison http://whaison.hatenablog.jp/

typo memo
http://d.hatena.ne.jp/whaison/


dayNote
http://www.myspace.com/whaison http://ameblo.jp/whaison/ http://blog.crooz.jp/whaison/ http://blog.crooz.jp/whaisoncafe/ http://nenpyo.org/whaison

fulldisk
http://full.shin-gen.jp/
http://whaison.client.jp/
http://www.dclog.jp/whaison/
featured forums.
space004
forum.unity3d.com/

forums.unrealengine.com.

Progression Forum.

FlashDevelop Forum.

Papervision3D Forum.

FlexUserGroup Forum.

SparkProjectForum.





Twitter







Mobile
qrcode
Calendar
SunMonTueWedThuFriSat
  12345
6789101112
13141516171819
20212223242526
2728293031  
<< October 2019 >>
New Entries
Archives
Categories
Recent comment
  • FlashDevelopでフォント埋め込み
    感謝!! (12/24)
  • cocos2d-x-3.0rc0 ,c++ ,cpp でTexturePacker で 吐き出した、plist と png でパラパラアニメーションのコード例
    whaison (04/17)
  • Blender2.67にbvh(web上に2500個以上ころがってる)入れてそのBoneオブジェクトをUnity4.0のmecanimで使う
    whaison (08/19)
  • Apple Dev Center 「Certificates, Identifiers & Profiles」で Adhoc をつくってXCode4.6.1でArchiveしてipaを書き出し
    whaison (04/30)
  • Flash CS6でプロパティーパネルで物理演算のジャンプの高さを設定できるCitrus Engine
    whaison (03/01)
  • 「Flash以外、例えばKinectとか」ON TOKYO (会場:高田馬場4-11-8 Floor 6階 ) 短縮URL http://bit.ly/dI0Bfx
    uka (03/02)
  • App Store Review Guidelines アップル社のアプリ審査基準ガイドライン和訳 Apple が 開発者を悩ませ ユーザーをハッピーにしたいガイドライン。w
    whaison (01/25)
  • Unity3d では ADOBE JAPAN OSAKIで行われたFITC 2010 TOKYOでは、 「iOS用にパブリッシュするためには、フリー版ではなくて、有料版を買ってください。さらに追加のパッケージである、"iOS Package (for Development)"を買ってください」とのことだった。
    whaison (01/25)
  • enjoy Adidas-Futsal-Park
    whaison (01/16)
  • MacBookAir にFlashPlayer入れたらなった。Mac Flash Player 10.1/10.2でUstream などでカメラが認識されないバグそんなときはUstreamProducer!でもなくiPhoneだと直ぐにライブ配信できた
    whaison (01/14)
simple sintax high lighter2.0
space003
SyntaxHighlighter2.0用 の貼り付けコード作成する!
ブログパーツ-BLOG PARTS.
Profile
Links
Recommend
Admin
無料ブログ作成サービス JUGEM
Seach this site
            
2014.11.12 Wednesday
unity C# iDictionary とDictionary の違い とICollectionインターフェース
mscorlib.dll
FileVersion
 ("2.0.50727.1433")]



unity C#というか C#
iDictionary とDictionary の違い

IDictionaryはプロパティ+メソッド全部で8こしかない。
IsFixedSize
IsReadOnly
ICollection
 Keys
TValue this [TKey key]
Add
 (TKey keyTValue value)
ContainsKey
 (TKey key)
Remove
 (TKey key)
TryGetValue
 (TKey keyout TValue value)


http://msdn.microsoft.com/ja-jp/library/s4ys34ea(v=vs.110).aspx
ーーーーーーーーーーーーーーーーーーーーIDictionary Classーーーーーーーーーーーーーーーーーーーーーー
using System;
using System.Runtime.InteropServices;
namespace System.Collections
{
    [ComVisible (true)]
    public interface IDictionary : ICollectionIEnumerable
    {
        //
        // Properties
        //
        bool IsFixedSize
        {
            get;
        }

        bool IsReadOnly
        {
            get;
        }

        ICollection Keys
        {
            get;
        }

        ICollection Values
        {
            get;
        }

        //
        // Indexer
        //
        object this [object key]
        {
            get;
            set;
        }

        //
        // Methods
        //
        void Add (object keyobject value);

        void Clear ();

        bool Contains (object key);

        IDictionaryEnumerator GetEnumerator ();

        void Remove (object key);
    }
}

ーーーーーーーーーーーーーーーーーーーーIDictionaryーーーーーーーーーーーーーーーーーーーーーーー
IDictionary
と短いがDictionaryは長ーーーーーい
http://msdn.microsoft.com/ja-jp/library/xfhwa508(v=vs.110).aspx
ーーーーーーーーーーーーーーーーーーーーDictionaryーーーーーーーーーーーーーーーーーーーーーーー
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
using System.Security.Permissions;
namespace System.Collections.Generic
{
    [DebuggerDisplay ("Count={Count}"), DebuggerTypeProxy (typeof(CollectionDebuggerView<, >)), ComVisible (false)]
    [Serializable]
    public class Dictionary<TKeyTValue> : IDictionary<TKeyTValue>, ICollection<KeyValuePair<TKeyTValue>>, IEnumerable<KeyValuePair<TKeyTValue>>, ICollectionIDictionaryIEnumerableIDeserializationCallbackISerializable
    {
        private delegate TRet Transform<TRet> (TKey keyTValue value);

        //
        // Properties
        //
        public IEqualityComparer<TKeyComparer
        {
            get
            {
                return this.hcp;
            }
        }

        public int Count
        {
            get
            {
                return this.count;
            }
        }

        bool IDictionary.IsFixedSize
        {
            get
            {
                return false;
            }
        }

        bool IDictionary.IsReadOnly
        {
            get
            {
                return false;
            }
        }

        bool ICollection<KeyValuePair<TKeyTValue>>.IsReadOnly
        {
            get
            {
                return false;
            }
        }

        bool ICollection.IsSynchronized
        {
            get
            {
                return false;
            }
        }

        public Dictionary<TKeyTValue>.KeyCollection Keys
        {
            get
            {
                return new Dictionary<TKeyTValue>.KeyCollection (this);
            }
        }

        ICollection<TKeyIDictionary<TKeyTValue>.Keys
        {
            get
            {
                return this.Keys;
            }
        }

        ICollection IDictionary.Keys
        {
            get
            {
                return this.Keys;
            }
        }

        object ICollection.SyncRoot
        {
            get
            {
                return this;
            }
        }

        ICollection<TValueIDictionary<TKeyTValue>.Values
        {
            get
            {
                return this.Values;
            }
        }

        public Dictionary<TKeyTValue>.ValueCollection Values
        {
            get
            {
                return new Dictionary<TKeyTValue>.ValueCollection (this);
            }
        }

        ICollection IDictionary.Values
        {
            get
            {
                return this.Values;
            }
        }

        //
        // Indexer
        //
        object IDictionary.this [object key]
        {
            get
            {
                if (key is TKey && this.ContainsKey ((TKey)((object)key)))
                {
                    return this [this.ToTKey (key)];
                }
                return null;
            }
            set
            {
                this [this.ToTKey (key)] = this.ToTValue (value);
            }
        }

        public TValue this [TKey key]
        {
            get
            {
                if (key == null)
                {
                    throw new ArgumentNullException ("key");
                }
                int num = this.hcp.GetHashCode (key) | -2147483648;
                for (int num2 = this.table [(num & 2147483647) % this.table.Length] - 1num2 != -1num2 = this.linkSlots [num2].Next)
                {
                    if (this.linkSlots [num2].HashCode == num && this.hcp.Equals (this.keySlots [num2], key))
                    {
                        return this.valueSlots [num2];
                    }
                }
                throw new KeyNotFoundException ();
            }
            set
            {
                if (key == null)
                {
                    throw new ArgumentNullException ("key");
                }
                int num = this.hcp.GetHashCode (key) | -2147483648;
                int num2 = (num & 2147483647) % this.table.Length;
                int num3 = this.table [num2] - 1;
                int num4 = -1;
                if (num3 != -1)
                {
                    while (this.linkSlots [num3].HashCode != num || !this.hcp.Equals (this.keySlots [num3], key))
                    {
                        num4 = num3;
                        num3 = this.linkSlots [num3].Next;
                        if (num3 == -1)
                        {
                            break;
                        }
                    }
                }
                if (num3 == -1)
                {
                    if (++this.count > this.threshold)
                    {
                        this.Resize ();
                        num2 = (num & 2147483647) % this.table.Length;
                    }
                    num3 = this.emptySlot;
                    if (num3 == -1)
                    {
                        num3 = this.touchedSlots++;
                    }
                    else
                    {
                        this.emptySlot = this.linkSlots [num3].Next;
                    }
                    this.linkSlots [num3].Next = this.table [num2] - 1;
                    this.table [num2] = num3 + 1;
                    this.linkSlots [num3].HashCode = num;
                    this.keySlots [num3] = key;
                }
         
| whaison | Unity3d | 14:47 | comments(0) | - | pookmark |
Comment




whaisonStudyNoteBook をFaceBookで いいね!





Share |