Forge/Editor/AddDataPopupWindow.cs
/// <summary>
/// Returns true if the given data type can be added to the given entity.
/// </summary>
Returns true if the given data type can be added to the given entity.
Returns true if the given data type can be added to the given entity .
private static bool CanAdd(IQueryableEntity entity, Type dataType) {
            if (entity == null) {
                return true;
            }
            var accessor = new DataAccessor(dataType);
            return entity.ContainsData(accessor) == false;
        }
private static bool CanAdd ( IQueryableEntity entity , Type dataType ) { if ( entity == null ) { return true ; } var accessor = new DataAccessor ( dataType ) ; return entity . ContainsData ( accessor ) == false ; }
Returns true if the given data type can be added to the given entity.
Returns true if the given data type can be added to the given entity .
entity
IQueryableEntity
dataType
Type