public FbxObject() { UniqueID = AllocateUniqueID(); ClassId = FbxClass.FromType(GetType()); DestinationObjects = new FbxObjectDestinationCollection(this); SourceObjects = new FbxObjectSourceCollection(this); }
public static FbxClass FromType(Type type) { if (type == null) { throw new ArgumentNullException("type"); } lock (list) { FbxClass result; if (list.TryGetValue(type, out result)) { return(result); } if (!type.IsSubclassOf(typeof(FbxObject))) { throw new ArgumentException("Type is not a subclass of " + typeof(FbxObject).Name + "."); } return(list[type] = new FbxClass(type)); } }
public static FbxClass FromType(Type type) { if (type == null) throw new ArgumentNullException("type"); lock (list) { FbxClass result; if (list.TryGetValue(type, out result)) return result; if(!type.IsSubclassOf(typeof(FbxObject))) throw new ArgumentException("Type is not a subclass of " + typeof(FbxObject).Name + "."); return list[type] = new FbxClass(type); } }
internal FbxPropertyHandle(FbxClass @class, PropertyInfo property) { Class = @class; Property = property; Name = property.Name; }