CSJ2K.j2k.ModuleSpec.getCompDef C# (CSharp) Method

getCompDef() public method

Gets default value of the specified component. If no specification have been entered for this component, returns default value.
public getCompDef ( int c ) : Object
c int Component index /// ///
return System.Object
        public virtual System.Object getCompDef(int c)
        {
            if (specType == SPEC_TYPE_TILE)
            {
                throw new System.InvalidOperationException("Illegal use of ModuleSpec class");
            }
            if (compDef == null || compDef[c] == null)
            {
                return getDefault();
            }
            else
            {
                return compDef[c];
            }
        }