Anti-islanding protection is enforced by the governments or power supply companies such as IESCO, LESCO on the manufacturers of Grid Tied Inverter.
which means that during electric outrage, Inverters are suppose to shutdown thus wont be sending power to the national grid during load shedding.
why this is important: This is important because in developed countries, grid's are shut down once repair activities are going on, during repair, if your inverter is sending power out then electrician working on your pole would think, that it is safe to work as power has been shut down but he would receive a deadly shock and which can kill him as not realizing that your home next door is producing power and feeding to the national grid. that is why this regulation has been enforced.
Second reason, Your Solar System is supplementing the power supply companies as its capacity is within Kilowatts whereas power supply companies capacities is in magawatts. if your power supply company shuts downs or goes under the load shedding then entire load of your area will fall on your inverter alone which can either damage your inverter or your inverter can potentially blow all the electrical systems installed in vicinity like your neighbors airconditioner's, fridges, TV's as power would be available to them but wont be sufficient.
Rate of Electricity Produced by your Solar System: As per the regulations from NEPRA, your power supply companies buys the power at the same rate at which it is selling the power.
which means, if you have bough 400units of electricity from IESCO and Sold 350 units then you will only have to pay bills on 400-350=50 units.