Forge/Editor/DataWindow.cs
/// <summary>
/// Removes the given data type from the entity.
/// </summary>
Removes the given data type from the entity.
Removes the given data type from the entity .
private static void RemoveData(IQueryableEntity entity, Type dataType) {
            var accessor = new DataAccessor(dataType);
            if (entity is IEntity) {
                ((IEntity)entity).RemoveData(accessor);
            }
            else if (entity is ITemplate) {
                ((ITemplate)entity).RemoveDefaultData(accessor);
            }
        }
private static void RemoveData ( IQueryableEntity entity , Type dataType ) { var accessor = new DataAccessor ( dataType ) ; if ( entity is IEntity ) { ( ( IEntity ) entity ) . RemoveData ( accessor ) ; } else if ( entity is ITemplate ) { ( ( ITemplate ) entity ) . RemoveDefaultData ( accessor ) ; } }
Removes the given data type from the entity.
Removes the given data type from the entity .
entity
IQueryableEntity
dataType
Type